Browse Source

fabs instead of abs

master
Tim Zeuner 1 year ago
parent
commit
60fbc8758d

+ 1
- 1
AutonomousMode/ControlModule/control_module.cpp View File

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);
} }

+ 1
- 0
AutonomousMode/ControlModule/control_module.h View File

#include <mutex> #include <mutex>
#include <vector> #include <vector>
#include <iostream> #include <iostream>
#include <cmath>


class ControlModule class ControlModule
{ {

Loading…
Cancel
Save