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); | |||||
} | } |
#include <mutex> | #include <mutex> | ||||
#include <vector> | #include <vector> | ||||
#include <iostream> | #include <iostream> | ||||
#include <cmath> | |||||
class ControlModule | class ControlModule | ||||
{ | { |