Robot: use Actuator::change_last_milestone() method instead of writing directly
authorMichael Moon <triffid.hunter@gmail.com>
Wed, 19 Feb 2014 21:55:21 +0000 (08:55 +1100)
committerMichael Moon <triffid.hunter@gmail.com>
Wed, 19 Feb 2014 21:55:21 +0000 (08:55 +1100)
src/modules/robot/Robot.cpp

index 5a7d9e4..8bd4ff6 100644 (file)
@@ -536,7 +536,7 @@ void Robot::append_milestone( float target[], float rate_mm_s )
 
     // Update the last_milestone to the current target for the next time we use last_milestone
     for (int i = 0; i < 3; i++)
-        axes[i].last_milestone = target[i];
+        axes[i].change_last_milestone(target[i]);
 
 }