Skip to content

Commit

Permalink
Fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DrGFreeman committed Apr 22, 2017
1 parent 06cf88e commit 66cf0ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/DemoTimedPID/DemoTimedPID.ino
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void loop() {
// Get the system command from the PID based on target speed and current speed
force = pid.getCmd(targetSpeed, speed);

// Calculate mass acceleration using Newton's third law (f=ma -> a=f/m)
// Calculate mass acceleration using Newton's second law (F=ma -> a=F/m)
accel = (force - fDrag) / mass;
// Update mass speed based on acceleration and time step
speed += accel * timeStep;
Expand Down

0 comments on commit 66cf0ef

Please sign in to comment.