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 Christopher Eubanks

Committer:
blu12758
Date:
Thu May 11 16:20:54 2017 +0000
Revision:
21:ee2b617cc0e6
Parent:
10:4dd8b18e07d0
OA changed to OF

Who changed what in which revision?

UserRevisionLine numberNew 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 10:4dd8b18e07d0 11
blu12758 10:4dd8b18e07d0 12 //Initialize the robot hardware
blu12758 10:4dd8b18e07d0 13 controller->model->init();
blu12758 7:0f8c3dfbbb86 14
blu12758 7:0f8c3dfbbb86 15 //Initialize the robot screen
blu12758 7:0f8c3dfbbb86 16 controller->view->init();
blu12758 8:1173b502b316 17 controller->main();
blu12758 8:1173b502b316 18
blu12758 6:8232db1ed208 19 while(1)
blu12758 6:8232db1ed208 20 {
blu12758 6:8232db1ed208 21 //check for user selections and react accordingly
blu12758 7:0f8c3dfbbb86 22 controller->listen();
blu12758 10:4dd8b18e07d0 23 controller->update();
blu12758 10:4dd8b18e07d0 24 wait_ms(5);
blu12758 6:8232db1ed208 25 }
blu12758 6:8232db1ed208 26 }