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: Encoder mbed HIDScope Servo MODSERIAL
Fork of chessRobot by
Revision 130:2542f844ba1e, committed 2015-10-30
- Comitter:
- annesteenbeek
- Date:
- Fri Oct 30 10:32:49 2015 +0100
- Parent:
- 129:53d23eae7a6a
- Commit message:
- changes
Changed in this revision
| serialcom.cpp | Show annotated file Show diff for this revision Revisions of this file |
| serialcom.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/serialcom.cpp Fri Oct 30 01:03:02 2015 +0100
+++ b/serialcom.cpp Fri Oct 30 10:32:49 2015 +0100
@@ -67,10 +67,10 @@
pc.printf("calReady %d\n", calReady);
pc.printf("motorsEnable %d\n", motorsEnable);
pc.printf("EMGCalReady %d\n", EMGCalReady);
- pc.printf("Xpos %.3ld\n", Xpos);
- pc.printf("Ypos %.3ld\n", Ypos);
- pc.printf("motor1Pos %.3ld\n", motor1Pos);
- pc.printf("motor2Pos %.3ld\n", motor2Pos);
+ pc.printf("Xpos %.3lf\n", Xpos);
+ pc.printf("Ypos %.3lf\n", Ypos);
+ pc.printf("motor1Pos %.3lf\n", motor1Pos);
+ pc.printf("motor2Pos %.3lf\n", motor2Pos);
// transmit correct DOF controller
if(usePotmeters){
--- a/serialcom.h Fri Oct 30 01:03:02 2015 +0100 +++ b/serialcom.h Fri Oct 30 10:32:49 2015 +0100 @@ -5,7 +5,7 @@ #include "PID.h" #include "buttons.h" #include "config.h" -#include "EMG.h" +#include "emg.h" extern PID motor1PID; extern PID motor2PID;
