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;
void SimBrakeConfig(void *hdle, const char *section, tBrake *brake)
void SimBrakeSystemConfig(tCar *car)
void SimBrakeUpdate(tCar *car, tWheel *wheel, tBrake *brake)
void SimBrakeSystemUpdate(tCar *car)
void SimBrakeSystemReConfig(tCar *car)
#define PRM_BRKREPCMD_MAXCLICKS
#define FRNT_RGT
front right
#define PRM_BRKREPCMD_CLICKVALUE
#define REAR_RGT
rear right
#define REAR_LFT
rear left
#define FRNT_LFT
front left
float tdble
Floating point type used in TORCS.
tdble GfParmGetNum(void *handle, const char *path, const char *key, const char *unit, tdble deflt)
Get a numerical parameter from the parameter set handle.
bool SimAdjustPitCarSetupParam(tCarPitSetupValue *v)
Section header structure.
int brakeRepartitionCmd
Brake balance "clicks", positive is to the front.
tdble brakeCmd
Brake command [0.0, 1.0].
tCarPitSetupValue brakePressure
tCarPitSetupValue brakeRepartition