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
Diff: StateMachine.h
- Revision:
- 1:c5408c1c1b81
- Parent:
- 0:d8d297847268
--- a/StateMachine.h Wed Mar 25 13:26:46 2020 +0000 +++ b/StateMachine.h Wed Mar 25 15:23:05 2020 +0000 @@ -12,6 +12,12 @@ #include "Controller.h" #include "IRSensor.h" +#include <deque> +#include "Task.h" +#include "TaskWait.h" +#include "TaskMoveTo.h" + + /** * This class implements a simple state machine for a mobile robot. * It allows to move the robot forward, and to turn left or right, @@ -58,8 +64,11 @@ int buttonNow; int buttonBefore; Ticker ticker; + int result; + void run(); - void run(); + deque<Task*> taskList; + Task* task; }; #endif /* STATE_MACHINE_H_ */