Utility library for multiple control sources (e.g. PC).

Dependents:   uva_nc

Files at this revision

API Documentation at this revision

Comitter:
Sinterbaas
Date:
Sun Jan 10 23:46:26 2016 +0000
Parent:
4:178418dc887f
Commit message:
new

Changed in this revision

PcControls.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 178418dc887f -r 7af8eda5d3b0 PcControls.cpp
--- a/PcControls.cpp	Thu Jan 07 16:19:49 2016 +0000
+++ b/PcControls.cpp	Sun Jan 10 23:46:26 2016 +0000
@@ -18,6 +18,8 @@
             break;
         case MOTOR_POSITION:
             printf("Motor position: %3.3f%% \r\n", this->motorController.getPosition());
+            // Return immediately to prevent the servo regulating system from
+            // seeing MOTOR_POSITION as the command that is has to keep regulating.
             return;
         case MOTOR_START:
             this->motorController.start();