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:
chris1996
Date:
2017-05-09
Revision:
14:c18a489789e6
Parent:
10:4dd8b18e07d0

File content as of revision 14:c18a489789e6:

//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();
};