SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,11 @@
--- 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); */