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 biquadFilter
Diff: test_main.cpp
- Revision:
- 11:57f0ab4d0e99
- Parent:
- 9:3193094ba3b2
- Child:
- 14:551049a798a3
--- a/test_main.cpp Thu Nov 03 08:17:47 2016 +0000 +++ b/test_main.cpp Thu Nov 03 08:26:56 2016 +0000 @@ -16,7 +16,7 @@ //====== Constants ===== -enum DirectionState{NOTHING, UP, DOWN, FORWARD, BACKWARD}; +enum RobotCommand{NOTHING, UP, DOWN, FORWARD, BACKWARD}; enum ProgramState{CALIBRATING, UPDOWN, FORBACK}; const float sampleFrequency = 500; @@ -26,7 +26,7 @@ //====== Program Variables ====== ProgramState progState; -DirectionState dirState; +RobotCommand robotCommand; //====== Functions ====== @@ -47,15 +47,16 @@ } -int main() { - progState = CALIBRATING; - - calibrate(); - - progState = UPDOWN; - - run(); - - while(true); - return 0; -} \ No newline at end of file +//int main() { +// progState = CALIBRATING; +// +// calibrate(); +// +// progState = UPDOWN; +// robotCommand = NOTHING; +// +// run(); +// +// while(true); +// return 0; +//} \ No newline at end of file