Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Classic_PID iC_MU mbed-rtos mbed
Diff: ServiceKeyboard.cpp
- 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