4 directional EMG control of the XY table. Made during my bachelor end assignment.

Dependencies:   C12832_lcd HIDScope mbed-dsp mbed

Files at this revision

API Documentation at this revision

Comitter:
jessekaiser
Date:
Thu Jun 25 09:35:23 2015 +0000
Parent:
85:a7493d3dd4ce
Child:
87:97015f6cb9cc
Commit message:
X-motor2;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Jun 25 08:22:00 2015 +0000
+++ b/main.cpp	Thu Jun 25 09:35:23 2015 +0000
@@ -230,9 +230,9 @@
     Enablex = 1;
     Enabley = 1;
     wait(1);
-    lcd.printf("Start homing");
+    pc.printf("Start homing");
     wait(2);
-    lcd.cls();
+    //lcd.cls();
     wait(1);
     Enablex = 0;
     Enabley = 0;
@@ -242,7 +242,7 @@
         Ps_y = Posy.read();
         errorx = fabs(Pt_x - Ps_x);
         errory = fabs(Ps_y - Pt_y);
-        lcd.printf("%.2f %.2f \n", errorx, errory);
+        pc.printf("%.2f %.2f \n", errorx, Ps_x);
         
         
         if (Ps_x < 0.50 && errorx > error_tresh) {