fabs instead of abs
This commit is contained in:
parent
fe4af52380
commit
60fbc8758d
@ -110,5 +110,5 @@ double ControlModule::ratio(double angle)
|
|||||||
double progressPercent = progress/angularRange;
|
double progressPercent = progress/angularRange;
|
||||||
|
|
||||||
double speed = minAngularSpeed + progressPercent*speedRange;
|
double speed = minAngularSpeed + progressPercent*speedRange;
|
||||||
return abs(speed);
|
return std::fabs(speed);
|
||||||
}
|
}
|
@ -2,6 +2,7 @@
|
|||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <cmath>
|
||||||
|
|
||||||
class ControlModule
|
class ControlModule
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user