Carbon Fibre / Mbed 2 deprecated Motor_test_harness

Dependencies:   Classic_PID iC_MU mbed-rtos mbed

Revision:
1:1ad84260ff59
Parent:
0:7ce0bc67f60f
Child:
2:dc684c402296
--- a/ServiceKeyboard.cpp	Thu Apr 02 07:35:39 2015 +0000
+++ b/ServiceKeyboard.cpp	Mon May 18 09:06:07 2015 +0000
@@ -12,9 +12,6 @@
 // Returns the new set point entered via the keyboard
 int ServiceKeyboard ()
 {
-    return(1);
-}
-    /*
     int key;                                            // The keypress by the user
     int value = 0;                                      // The variable to return
 
@@ -23,9 +20,12 @@
     if (key == 'j') {
         joystick = !joystick;
         if(joystick) {
-            pc.printf("\n\rJoystick");
+            pc.printf("\n\r Under Joystick Control");
         } else {
-            pc.printf("\n\rPC");
+            // Stop both axes
+            PanVelocityPID.setSetPoint(0);
+            TiltVelocityPID.setSetPoint(0);
+            pc.printf("\n\r Under PC Control");
         }
     } 
     // Set Velocity for Pan and Tilt here...
@@ -95,4 +95,4 @@
         }
     }
     return(1);
-}*/
\ No newline at end of file
+}
\ No newline at end of file