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/RobotController.h

Committer:
blu12758
Date:
2017-05-09
Revision:
10:4dd8b18e07d0
Parent:
9:4ae116881502

File content as of revision 10:4dd8b18e07d0:

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

#include "mbed.h"
#include "RobotModel.h"
#include "RobotView.h"

class RobotController
{
    
    public:
    
    RobotModel* model;
    RobotView* view;
    
    //Constructors/Destructors
    ~RobotController();
    RobotController();
    
    //Accessors/Mutators
    void setModel(RobotModel* m){model = m;}
    void setView(RobotView* v){view = v;}
    
    //Handles choices made by the user on the robot interface
    //input: selection value
    void userSelection(int s);
    
    //Go to main menu
    void main();
    
    //Listens for inputs
    void listen();
    
    //Update robot state
    void update();
};