Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed QEI HIDScope biquadFilter MODSERIAL FastPWM
Diff: main.cpp
- Revision:
- 34:b035131eda3e
- Parent:
- 28:4a5671b3d88d
- Child:
- 37:6602655a80f4
--- a/main.cpp Wed Oct 09 14:19:23 2019 +0000 +++ b/main.cpp Thu Oct 10 10:56:23 2019 +0000 @@ -32,7 +32,7 @@ enum States {MovementIdle, CalibrationIdle, Demo, Startup, CalibrationPhysical, CalibrationEMG, Move, TiltCup, FailState}; States CurrentState; - extern double X; + double X; volatile char ledcolor; //r is red, b is blue, g is green, t is bluegreen, p is purple volatile int errorCode; @@ -45,19 +45,6 @@ Ticker Main_Ticker; Ticker Tick_Blinky;//used for the blinking of the leds - //struct motorReturnSub -//{ -// int counts; -// float angle; -// float velocity; -//}; - -//struct motorReturn -//{ -// motorReturnSub motor1; -// motorReturnSub motor2; -// motorReturnSub motor3; -//} motorReturn; //Changing LED colour depending on current state void FlipLED(void)