![](/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
serialcom.h@130:2542f844ba1e, 2015-10-30 (annotated)
- Committer:
- annesteenbeek
- Date:
- Fri Oct 30 10:32:49 2015 +0100
- Revision:
- 130:2542f844ba1e
- Parent:
- 129:53d23eae7a6a
changes
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
annesteenbeek | 124:f67ce69557db | 1 | #ifndef SERIALCOM_H |
annesteenbeek | 124:f67ce69557db | 2 | #define SERIALCOM_H |
annesteenbeek | 124:f67ce69557db | 3 | |
annesteenbeek | 125:749b8ce2e040 | 4 | #include "mbed.h" |
annesteenbeek | 124:f67ce69557db | 5 | #include "PID.h" |
annesteenbeek | 125:749b8ce2e040 | 6 | #include "buttons.h" |
annesteenbeek | 125:749b8ce2e040 | 7 | #include "config.h" |
annesteenbeek | 130:2542f844ba1e | 8 | #include "emg.h" |
annesteenbeek | 124:f67ce69557db | 9 | |
annesteenbeek | 124:f67ce69557db | 10 | extern PID motor1PID; |
annesteenbeek | 124:f67ce69557db | 11 | extern PID motor2PID; |
annesteenbeek | 124:f67ce69557db | 12 | |
annesteenbeek | 124:f67ce69557db | 13 | extern DigitalOut redLed; |
annesteenbeek | 124:f67ce69557db | 14 | extern DigitalOut greenLed; |
annesteenbeek | 124:f67ce69557db | 15 | extern DigitalOut blueLed; |
annesteenbeek | 127:831f03471efb | 16 | extern bool enablePump; |
annesteenbeek | 127:831f03471efb | 17 | extern bool startCalibration; |
annesteenbeek | 127:831f03471efb | 18 | extern bool enableEMG; |
annesteenbeek | 127:831f03471efb | 19 | extern bool usePotmeters; |
annesteenbeek | 127:831f03471efb | 20 | extern bool controlAngle; |
annesteenbeek | 127:831f03471efb | 21 | extern bool controlDirection; |
annesteenbeek | 129:53d23eae7a6a | 22 | extern bool enablePump; |
annesteenbeek | 129:53d23eae7a6a | 23 | extern bool startCalibration; |
annesteenbeek | 129:53d23eae7a6a | 24 | extern bool enableEMG; |
annesteenbeek | 129:53d23eae7a6a | 25 | extern bool usePotmeters; |
annesteenbeek | 129:53d23eae7a6a | 26 | extern bool controlAngle; |
annesteenbeek | 129:53d23eae7a6a | 27 | extern bool controlDirection; |
annesteenbeek | 129:53d23eae7a6a | 28 | extern bool calReady; |
annesteenbeek | 129:53d23eae7a6a | 29 | extern bool motorsEnable; |
annesteenbeek | 129:53d23eae7a6a | 30 | extern bool EMGCalReady; |
annesteenbeek | 129:53d23eae7a6a | 31 | extern double Xpos; |
annesteenbeek | 129:53d23eae7a6a | 32 | extern double Ypos; |
annesteenbeek | 129:53d23eae7a6a | 33 | extern double motor1Pos; |
annesteenbeek | 129:53d23eae7a6a | 34 | extern double motor2Pos; |
annesteenbeek | 129:53d23eae7a6a | 35 | extern int DOF; |
annesteenbeek | 129:53d23eae7a6a | 36 | extern int actuatorState; |
annesteenbeek | 129:53d23eae7a6a | 37 | |
annesteenbeek | 124:f67ce69557db | 38 | |
annesteenbeek | 124:f67ce69557db | 39 | void serialCom(); |
annesteenbeek | 126:56866cefaa08 | 40 | void serialInit(); |
annesteenbeek | 124:f67ce69557db | 41 | |
annesteenbeek | 124:f67ce69557db | 42 | #endif |