diff --git a/src/TunePID.cpp b/src/TunePID.cpp index 99ddc0eb..6487735a 100644 --- a/src/TunePID.cpp +++ b/src/TunePID.cpp @@ -166,7 +166,8 @@ int main(int argc, char** argv) { if (mode == targetmode_t::step) { prescaled_target = round(prescaled_target); } - angle_target = static_cast(round(amplitude * prescaled_target)) + starting_angle; + angle_target = + static_cast(round(amplitude * prescaled_target)) + starting_angle; can::motor::setMotorPIDTarget(serial, angle_target);