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

Classes/RobotMVC/RobotModel.h

Committer:
blu12758
Date:
2017-05-09
Revision:
10:4dd8b18e07d0
Parent:
8:1173b502b316
Child:
11:10a7bb4bc714
Child:
14:c18a489789e6

File content as of revision 10:4dd8b18e07d0:

//OU Configurable Robot Project
//Spring 2017
//William Bonner

#include "mbed.h"


class RobotModel
{
    //Current mode of operation
    //0 = await command
    int _mode;
    
    public:
    
    //Constructors/Destructors
    ~RobotModel();
    RobotModel();
       
    //Accessors/Mutators
    int getMode() const {return _mode;}
    void setMode(int m){_mode = m;}
    
    //initialize the robot's hardware
    void init();
    //update the model based on the mode
    int update();
};