Skip to content

Commit

Permalink
Cached Speed RPM is in the Correct Direction
Browse files Browse the repository at this point in the history
No need to flip directions anymore
  • Loading branch information
krkeegan committed Oct 12, 2017
1 parent 7c406dd commit bcfafca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cnc_ctrl_v1/CNC_Functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,7 @@ void PIDTestVelocity(Axis* axis, const float start, const float stop, const floa
if (current - print > 20000){
// Calculate and log error on same frequency as PID interrupt
reportedSpeed= axis->motorGearboxEncoder.cachedSpeed();
error = (-1.0 * reportedSpeed) - speed;
error = reportedSpeed - speed;
print = current;
Serial.println(error);
}
Expand Down

0 comments on commit bcfafca

Please sign in to comment.