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:
- 3:47c76be6d402
- Parent:
- 1:80f098c05d4b
- Child:
- 5:73bfad06b775
--- a/main.cpp Thu Oct 01 15:36:55 2015 +0200 +++ b/main.cpp Mon Oct 05 16:01:21 2015 +0200 @@ -1,17 +1,15 @@ #include "PID.h" #include "QEI.h" -#include "MODSERIAL.h" #include "mbed.h" +#include "encoder.h" #include "config.h" // settings and pin configurations - -#define DEBUG // send debug data to serial console -#define ARM // enable motors +// #define DEBUG // send debug data to serial console #ifdef DEBUG - MODSERIAL pc(USBTX, USBRX); - pc.baud(115200); + #include "HIDScope.h" + HIDScope scope(1); #endif enablePins(); @@ -23,12 +21,11 @@ time.start(); // start the timer while (true) { - checkSwitches(); - readEMG(); + // checkSwitches(); + // readEMG(); motorControl(); - servoControl(); - pumpControl(); - + // servoControl(); + #ifdef DEBUG debugProcess(); #endif