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:
- 28:4a5671b3d88d
- Parent:
- 27:71be6e074d0f
- Child:
- 29:8d588d554779
- Child:
- 33:5e2e95c322da
- Child:
- 34:b035131eda3e
diff -r 71be6e074d0f -r 4a5671b3d88d main.cpp --- a/main.cpp Wed Oct 09 12:56:35 2019 +0000 +++ b/main.cpp Wed Oct 09 13:20:19 2019 +0000 @@ -7,6 +7,7 @@ //Homebrew libraries #include "header.h" + #include "global.h" //Objects //LED @@ -44,19 +45,19 @@ Ticker Main_Ticker; Ticker Tick_Blinky;//used for the blinking of the leds - struct motorReturnSub -{ - int counts; - float angle; - float velocity; -}; + //struct motorReturnSub +//{ +// int counts; +// float angle; +// float velocity; +//}; -struct motorReturn -{ - motorReturnSub motor1; - motorReturnSub motor2; - motorReturnSub motor3; -} motorReturn; +//struct motorReturn +//{ +// motorReturnSub motor1; +// motorReturnSub motor2; +// motorReturnSub motor3; +//} motorReturn; //Changing LED colour depending on current state void FlipLED(void)