fabs instead of abs

This commit is contained in:
Tim Zeuner 2023-02-23 20:38:18 +01:00
parent fe4af52380
commit 60fbc8758d
2 changed files with 2 additions and 1 deletions

View File

@ -110,5 +110,5 @@ double ControlModule::ratio(double angle)
double progressPercent = progress/angularRange;
double speed = minAngularSpeed + progressPercent*speedRange;
return abs(speed);
return std::fabs(speed);
}

View File

@ -2,6 +2,7 @@
#include <mutex>
#include <vector>
#include <iostream>
#include <cmath>
class ControlModule
{