![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
4 directional EMG control of the XY table. Made during my bachelor end assignment.
Dependencies: C12832_lcd HIDScope mbed-dsp mbed
Diff: main.cpp
- Revision:
- 86:9d781e7aa893
- Parent:
- 85:a7493d3dd4ce
- Child:
- 87:97015f6cb9cc
diff -r a7493d3dd4ce -r 9d781e7aa893 main.cpp --- 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) {