Dr. Davis and Dr. Dyer special studies robotics project
Dependencies: BSP_DISCO_F469NI LCD_DISCO_F469NI TS_DISCO_F469NI mbed Motordriver
Fork of Configurable_Robots by
Classes/RobotMVC/RobotController.h@8:1173b502b316, 2017-02-08 (annotated)
- Committer:
- blu12758
- Date:
- Wed Feb 08 20:31:20 2017 +0000
- Revision:
- 8:1173b502b316
- Parent:
- 7:0f8c3dfbbb86
- Child:
- 9:4ae116881502
touchscreen working
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
blu12758 | 4:4989e85d16b6 | 1 | //OU Configurable Robot Project |
blu12758 | 4:4989e85d16b6 | 2 | //Spring 2017 |
blu12758 | 5:be5e1177bb43 | 3 | //William Bonner |
blu12758 | 5:be5e1177bb43 | 4 | |
blu12758 | 5:be5e1177bb43 | 5 | #include "mbed.h" |
blu12758 | 6:8232db1ed208 | 6 | #include "RobotModel.h" |
blu12758 | 6:8232db1ed208 | 7 | #include "RobotView.h" |
blu12758 | 5:be5e1177bb43 | 8 | |
blu12758 | 5:be5e1177bb43 | 9 | class RobotController |
blu12758 | 5:be5e1177bb43 | 10 | { |
blu12758 | 5:be5e1177bb43 | 11 | |
blu12758 | 5:be5e1177bb43 | 12 | public: |
blu12758 | 5:be5e1177bb43 | 13 | |
blu12758 | 7:0f8c3dfbbb86 | 14 | RobotModel* model; |
blu12758 | 7:0f8c3dfbbb86 | 15 | RobotView* view; |
blu12758 | 7:0f8c3dfbbb86 | 16 | |
blu12758 | 6:8232db1ed208 | 17 | //Constructors/Destructors |
blu12758 | 6:8232db1ed208 | 18 | ~RobotController(); |
blu12758 | 6:8232db1ed208 | 19 | RobotController(); |
blu12758 | 6:8232db1ed208 | 20 | |
blu12758 | 6:8232db1ed208 | 21 | //Accessors/Mutators |
blu12758 | 7:0f8c3dfbbb86 | 22 | void setModel(RobotModel* m){model = m;} |
blu12758 | 7:0f8c3dfbbb86 | 23 | void setView(RobotView* v){view = v;} |
blu12758 | 6:8232db1ed208 | 24 | |
blu12758 | 6:8232db1ed208 | 25 | //Handles choices made by the user on the robot interface |
blu12758 | 6:8232db1ed208 | 26 | //input: selection value |
blu12758 | 6:8232db1ed208 | 27 | void UserSelection(int s); |
blu12758 | 7:0f8c3dfbbb86 | 28 | |
blu12758 | 8:1173b502b316 | 29 | //Go to main menu |
blu12758 | 8:1173b502b316 | 30 | void main(); |
blu12758 | 8:1173b502b316 | 31 | |
blu12758 | 7:0f8c3dfbbb86 | 32 | //Listens for inputs |
blu12758 | 7:0f8c3dfbbb86 | 33 | void listen(); |
blu12758 | 5:be5e1177bb43 | 34 | }; |