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:
Tue May 09 18:48:47 2017 +0000
Revision:
10:4dd8b18e07d0
Parent:
8:1173b502b316
Child:
11:10a7bb4bc714
Child:
14:c18a489789e6
UI update

Who changed what in which revision?

UserRevisionLine numberNew 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 5:be5e1177bb43 6
blu12758 10:4dd8b18e07d0 7
blu12758 5:be5e1177bb43 8 class RobotModel
blu12758 5:be5e1177bb43 9 {
blu12758 5:be5e1177bb43 10 //Current mode of operation
blu12758 8:1173b502b316 11 //0 = await command
blu12758 5:be5e1177bb43 12 int _mode;
blu12758 5:be5e1177bb43 13
blu12758 5:be5e1177bb43 14 public:
blu12758 5:be5e1177bb43 15
blu12758 6:8232db1ed208 16 //Constructors/Destructors
blu12758 6:8232db1ed208 17 ~RobotModel();
blu12758 6:8232db1ed208 18 RobotModel();
blu12758 6:8232db1ed208 19
blu12758 6:8232db1ed208 20 //Accessors/Mutators
blu12758 5:be5e1177bb43 21 int getMode() const {return _mode;}
blu12758 5:be5e1177bb43 22 void setMode(int m){_mode = m;}
blu12758 5:be5e1177bb43 23
blu12758 10:4dd8b18e07d0 24 //initialize the robot's hardware
blu12758 10:4dd8b18e07d0 25 void init();
blu12758 10:4dd8b18e07d0 26 //update the model based on the mode
blu12758 10:4dd8b18e07d0 27 int update();
blu12758 5:be5e1177bb43 28 };