![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
control for robotic arm that can play chess using a granular gripper
Dependencies: Encoder mbed HIDScope Servo MODSERIAL
Fork of chessRobot by
Diff: main.cpp
- Revision:
- 25:874675516927
- Parent:
- 15:5fa388ba22cb
- Child:
- 26:0a9e4147a31a
--- a/main.cpp Mon Oct 05 21:27:52 2015 +0200 +++ b/main.cpp Tue Oct 06 14:24:40 2015 +0000 @@ -1,24 +1,23 @@ #include "mbed.h" +#include "EMG.h" +#include "HIDScope.h" +#include "PID.h" +#include "encoder.h" #include "config.h" // settings and pin configurations #include "actuators.h" #include "buttons.h" -#include "EMG.h" - -//#define DEBUG // send debug data to HIDScope -#ifdef DEBUG - #include "debug.h" - dubugInit(); -#endif +#include "debug.h" +//motorInit(); int main(){ - setPins(); - motorInit(); + while (true) { - // checkSwitches(); + checkSwitches(); // readEMG(); motorControl(); // servoControl(); + debugProcess(); } } \ No newline at end of file