From 66cf0efd99b09dbbe7908e3866ab40f8079e9509 Mon Sep 17 00:00:00 2001 From: DrGFreeman Date: Sat, 22 Apr 2017 16:58:22 -0400 Subject: [PATCH] Fixed comments --- examples/DemoTimedPID/DemoTimedPID.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/DemoTimedPID/DemoTimedPID.ino b/examples/DemoTimedPID/DemoTimedPID.ino index e7f82ca..cbb3337 100755 --- a/examples/DemoTimedPID/DemoTimedPID.ino +++ b/examples/DemoTimedPID/DemoTimedPID.ino @@ -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;