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

Committer:
mehatfie
Date:
Fri Oct 03 21:33:46 2014 +0000
Revision:
16:2482d226cf4d
Parent:
11:bc9cd2869f95
- Updated Errors; - Initializes SD Card to work every time; - Cycle timer starts immediately on first cycle

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mehatfie 2:3e7baa3e3fec 1 #ifndef MOTOR_HPP
mehatfie 2:3e7baa3e3fec 2 #define MOTOR_HPP
mehatfie 2:3e7baa3e3fec 3
mehatfie 2:3e7baa3e3fec 4 #include "Initialization.hpp"
mehatfie 2:3e7baa3e3fec 5
mehatfie 2:3e7baa3e3fec 6 class Motor: public Device{
mehatfie 2:3e7baa3e3fec 7
mehatfie 2:3e7baa3e3fec 8 private:
mehatfie 11:bc9cd2869f95 9 enum BridgeDriver::Motors motor; //Keeps track of which Motor Enum the Motor was initialized to
mehatfie 11:bc9cd2869f95 10 int currDir; //Keeps track of what the current direction of the motor is
mehatfie 11:bc9cd2869f95 11 float currSpeed; //Keeps track of what the current speed of the motor is
mehatfie 2:3e7baa3e3fec 12 public:
mehatfie 5:e36e0538a903 13 Motor(LineData);
mehatfie 5:e36e0538a903 14 int interpret(LineData&);
mehatfie 9:5a0c4c6e39c7 15 int off();
mehatfie 2:3e7baa3e3fec 16 enum BridgeDriver::Motors getMotor();
mehatfie 11:bc9cd2869f95 17 int pause();
mehatfie 11:bc9cd2869f95 18 int resume();
mehatfie 2:3e7baa3e3fec 19 //void enableBrake();
mehatfie 2:3e7baa3e3fec 20 //int forceBrake();
mehatfie 2:3e7baa3e3fec 21 //int forceFloat();
mehatfie 2:3e7baa3e3fec 22 //float drive();
mehatfie 2:3e7baa3e3fec 23 };
mehatfie 2:3e7baa3e3fec 24
mehatfie 2:3e7baa3e3fec 25 #endif