Experimental: limit acc to 60% when shifting with auto-clutch
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4128 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 17cfa6735e153a12bcdd1b0519ffb74551bf4cbb Former-commit-id: 9adcdf2f5d96b04f4cd4581c06a63e2b994a96ad
This commit is contained in:
parent
ec1e18d2c7
commit
b96789703e
1 changed files with 7 additions and 1 deletions
|
@ -1033,9 +1033,15 @@ common_drive(const int index, tCarElt* car, tSituation *s)
|
|||
car->_accelCmd =
|
||||
MIN(car->_accelCmd, HCtx[idx]->paccel + inc_rate*d_accel/fabs(d_accel));
|
||||
}
|
||||
HCtx[idx]->paccel = car->_accelCmd;
|
||||
|
||||
}
|
||||
|
||||
// Limit throttle when auto-shifting
|
||||
if (HCtx[idx]->clutchtime > 0.0f && HCtx[idx]->autoClutch == true)
|
||||
car->_accelCmd = MIN(car->_accelCmd, 0.6);
|
||||
|
||||
HCtx[idx]->paccel = car->_accelCmd;
|
||||
|
||||
if (HCtx[idx]->autoReverseEngaged) {
|
||||
/* swap brake and throttle */
|
||||
brake = car->_brakeCmd;
|
||||
|
|
Loading…
Reference in a new issue