28 brake->
coeff = diam * 0.5f * area * mu;
40 brake->
temp -= cooling;
41 if (brake->
temp < 0 ) brake->
temp = 0;
43 brake->
temp += heating;
44 if (brake->
temp > 1.0) brake->
temp = 1.0;
82 }
else if (brakeRepartitionCmd < -brkSyst->repCmdMaxClicks) {
88 if (repartition > 1.0) {
90 }
else if (repartition < 0.0) {
94 ctrl *= brkSyst->
coeff;
#define REAR_LFT
rear left
void SimBrakeSystemConfig(tCar *car)
#define FRNT_LFT
front left
#define FRNT_RGT
front right
int brakeRepartitionCmd
Brake balance "clicks", positive is to the front.
tdble brakeCmd
Brake command [0.0, 1.0].
bool SimAdjustPitCarSetupParam(tCarPitSetupValue *v)
void SimBrakeSystemUpdate(tCar *car)
void SimBrakeUpdate(tCar *car, tWheel *wheel, tBrake *brake)
Section header structure.
tCarPitSetupValue brakePressure
#define REAR_RGT
rear right
tCarPitSetupValue brakeRepartition
float tdble
Floating point type used in TORCS.
#define PRM_BRKREPCMD_CLICKVALUE
void SimBrakeSystemReConfig(tCar *car)
tdble GfParmGetNum(void *handle, const char *path, const char *key, const char *unit, tdble deflt)
Get a numerical parameter from the parameter set handle.
#define PRM_BRKREPCMD_MAXCLICKS
void SimBrakeConfig(void *hdle, const char *section, tBrake *brake)