Update for linux
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5187 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 956225a362926f1d6112508ebe41b95e84a12c74 Former-commit-id: c828587d1c27b25ce558431aace539a222194d0f
This commit is contained in:
parent
959e6fcb12
commit
19c4633c50
1 changed files with 7 additions and 7 deletions
|
@ -62,12 +62,12 @@ ctrlCheck(tCar *car)
|
|||
if (isnan(car->ctrl->clutchCmd) || isinf(car->ctrl->clutchCmd)) car->ctrl->clutchCmd = 0;
|
||||
if (isnan(car->ctrl->steer) || isinf(car->ctrl->steer)) car->ctrl->steer = 0;
|
||||
if (isnan(car->ctrl->gear) || isinf(car->ctrl->gear)) car->ctrl->gear = 0;
|
||||
if (isnan(car->ctrl->wingFrontCmd)) || isinf(car->ctrl->wingFrontCmd)) car->ctrl->wingFrontCmd = 0;
|
||||
if (isnan(car->ctrl->wingRearCmd)) || isinf(car->ctrl->wingRearCmd)) car->ctrl->wingRearCmd = 0;
|
||||
if (isnan(car->ctrl->brakeFrontLeftCmd)) || isinf(car->ctrl->brakeFrontLeftCmd)) car->ctrl->brakeFrontLeftCmd = 0;
|
||||
if (isnan(car->ctrl->brakeFrontRightCmd)) || isinf(car->ctrl->brakeFrontRightCmd)) car->ctrl->brakeFrontRightCmd = 0;
|
||||
if (isnan(car->ctrl->brakeRearLeftCmd)) || isinf(car->ctrl->brakeRearLeftCmd)) car->ctrl->brakeRearLeftCmd = 0;
|
||||
if (isnan(car->ctrl->brakeRearRightCmd)) || isinf(car->ctrl->brakeRearRightCmd)) car->ctrl->brakeRearRightCmd = 0;
|
||||
if (isnan(car->ctrl->wingFrontCmd) || isinf(car->ctrl->wingFrontCmd)) car->ctrl->wingFrontCmd = 0;
|
||||
if (isnan(car->ctrl->wingRearCmd) || isinf(car->ctrl->wingRearCmd)) car->ctrl->wingRearCmd = 0;
|
||||
if (isnan(car->ctrl->brakeFrontLeftCmd) || isinf(car->ctrl->brakeFrontLeftCmd)) car->ctrl->brakeFrontLeftCmd = 0;
|
||||
if (isnan(car->ctrl->brakeFrontRightCmd) || isinf(car->ctrl->brakeFrontRightCmd)) car->ctrl->brakeFrontRightCmd = 0;
|
||||
if (isnan(car->ctrl->brakeRearLeftCmd) || isinf(car->ctrl->brakeRearLeftCmd)) car->ctrl->brakeRearLeftCmd = 0;
|
||||
if (isnan(car->ctrl->brakeRearRightCmd) || isinf(car->ctrl->brakeRearRightCmd)) car->ctrl->brakeRearRightCmd = 0;
|
||||
#else
|
||||
if (isnan(car->ctrl->accelCmd)) car->ctrl->accelCmd = 0;
|
||||
if (isnan(car->ctrl->brakeCmd)) car->ctrl->brakeCmd = 0;
|
||||
|
|
Loading…
Reference in a new issue