Controller firmware for a mobile robot, having a K64F MCU on board. Please read README.md for details.
demo.h@0:260ca1f1cba7, 2018-05-30 (annotated)
- Committer:
- dralisz82
- Date:
- Wed May 30 15:10:20 2018 +0000
- Revision:
- 0:260ca1f1cba7
Controller firmware for a mobile robot, having a K64F MCU on board.; ; See README.md for details;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dralisz82 | 0:260ca1f1cba7 | 1 | #ifndef demo_H |
dralisz82 | 0:260ca1f1cba7 | 2 | #define demo_H |
dralisz82 | 0:260ca1f1cba7 | 3 | |
dralisz82 | 0:260ca1f1cba7 | 4 | #include "mbed.h" |
dralisz82 | 0:260ca1f1cba7 | 5 | #include "rtos.h" |
dralisz82 | 0:260ca1f1cba7 | 6 | #include "drive.h" |
dralisz82 | 0:260ca1f1cba7 | 7 | #include "lights.h" |
dralisz82 | 0:260ca1f1cba7 | 8 | |
dralisz82 | 0:260ca1f1cba7 | 9 | class Demo { |
dralisz82 | 0:260ca1f1cba7 | 10 | public: |
dralisz82 | 0:260ca1f1cba7 | 11 | Demo(); |
dralisz82 | 0:260ca1f1cba7 | 12 | Demo(Drive* _drive, Lights* _lights); |
dralisz82 | 0:260ca1f1cba7 | 13 | ~Demo(); |
dralisz82 | 0:260ca1f1cba7 | 14 | |
dralisz82 | 0:260ca1f1cba7 | 15 | void playPause(); |
dralisz82 | 0:260ca1f1cba7 | 16 | void reset(); |
dralisz82 | 0:260ca1f1cba7 | 17 | |
dralisz82 | 0:260ca1f1cba7 | 18 | private: |
dralisz82 | 0:260ca1f1cba7 | 19 | bool f_run; |
dralisz82 | 0:260ca1f1cba7 | 20 | |
dralisz82 | 0:260ca1f1cba7 | 21 | Drive* drive; |
dralisz82 | 0:260ca1f1cba7 | 22 | Lights* lights; |
dralisz82 | 0:260ca1f1cba7 | 23 | Thread *demoThread; |
dralisz82 | 0:260ca1f1cba7 | 24 | static void demoThread_main(void const *argument); |
dralisz82 | 0:260ca1f1cba7 | 25 | }; |
dralisz82 | 0:260ca1f1cba7 | 26 | |
dralisz82 | 0:260ca1f1cba7 | 27 | #endif |