Component Test's Software to work with "Universal Controller Box" - Software is an interpreter or "compiler" for programs to be done with a .txt file and read off of the SD Card

Dependencies:   BridgeDriver FrontPanelButtons MCP23017 SDFileSystem TextLCD mbed

Devices/Motor.hpp

Committer:
mehatfie
Date:
2014-10-03
Revision:
16:2482d226cf4d
Parent:
11:bc9cd2869f95

File content as of revision 16:2482d226cf4d:

#ifndef MOTOR_HPP
#define MOTOR_HPP

#include "Initialization.hpp"

class Motor: public Device{
    
    private:
        enum BridgeDriver::Motors motor;    //Keeps track of which Motor Enum the Motor was initialized to
        int currDir;                        //Keeps track of what the current direction of the motor is
        float currSpeed;                    //Keeps track of what the current speed of the motor is
    public:
        Motor(LineData);
        int interpret(LineData&);
        int off();
        enum BridgeDriver::Motors getMotor();
        int pause();
        int resume();
        //void enableBrake();
        //int forceBrake();
        //int forceFloat();
        //float drive();
};

#endif