ports/games/speeddreams/patches/patch-src_libs_robottools_rthumandriver_cpp

12 lines
604 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
--- src/libs/robottools/rthumandriver.cpp.orig Mon Apr 18 17:37:11 2016
+++ src/libs/robottools/rthumandriver.cpp Tue Sep 20 01:28:40 2016
@@ -1406,7 +1406,7 @@ static void common_drive(const int index, tCarElt* car
}
ax0 = ax0 * cmd[CMD_THROTTLE].pow;
car->_accelCmd = pow(fabs(ax0), 1.0f / cmd[CMD_THROTTLE].sens) / (1.0 + cmd[CMD_THROTTLE].spdSens * car->_speed_x / 1000.0);
- if (isnan (car->_accelCmd)) {
+ if (std::isnan (car->_accelCmd)) {
car->_accelCmd = 0;
}
/* printf(" axO:%f accelCmd:%f\n", ax0, car->_accelCmd); */