control for robotic arm that can play chess using a granular gripper

Dependencies:   Encoder mbed HIDScope Servo MODSERIAL

Fork of chessRobot by a steenbeek

Files at this revision

API Documentation at this revision

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
diff -r 53d23eae7a6a -r 2542f844ba1e serialcom.cpp
--- 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){
diff -r 53d23eae7a6a -r 2542f844ba1e serialcom.h
--- 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;