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
main.cpp@7:0f8c3dfbbb86, 2017-02-07 (annotated)
- Committer:
- blu12758
- Date:
- Tue Feb 07 22:45:45 2017 +0000
- Revision:
- 7:0f8c3dfbbb86
- Parent:
- 6:8232db1ed208
- Child:
- 8:1173b502b316
Display Working
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
blu12758 | 3:2c0def8b9b22 | 1 | //OU Configurable Robot Project |
blu12758 | 3:2c0def8b9b22 | 2 | //Spring 2017 |
blu12758 | 3:2c0def8b9b22 | 3 | |
blu12758 | 6:8232db1ed208 | 4 | #include "mbed.h" |
blu12758 | 6:8232db1ed208 | 5 | #include "RobotController.h" |
blu12758 | 6:8232db1ed208 | 6 | |
blu12758 | 6:8232db1ed208 | 7 | int main() |
blu12758 | 6:8232db1ed208 | 8 | { |
blu12758 | 6:8232db1ed208 | 9 | //Initialize variables |
blu12758 | 7:0f8c3dfbbb86 | 10 | RobotController* controller = new RobotController(); |
blu12758 | 7:0f8c3dfbbb86 | 11 | |
blu12758 | 7:0f8c3dfbbb86 | 12 | |
blu12758 | 7:0f8c3dfbbb86 | 13 | //Initialize the robot screen |
blu12758 | 7:0f8c3dfbbb86 | 14 | controller->view->init(); |
blu12758 | 6:8232db1ed208 | 15 | |
blu12758 | 6:8232db1ed208 | 16 | while(1) |
blu12758 | 6:8232db1ed208 | 17 | { |
blu12758 | 6:8232db1ed208 | 18 | //check for user selections and react accordingly |
blu12758 | 7:0f8c3dfbbb86 | 19 | controller->listen(); |
blu12758 | 6:8232db1ed208 | 20 | } |
blu12758 | 6:8232db1ed208 | 21 | } |