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
Motor.hpp
00001 #ifndef MOTOR_HPP 00002 #define MOTOR_HPP 00003 00004 #include "Initialization.hpp" 00005 00006 class Motor: public Device{ 00007 00008 private: 00009 enum BridgeDriver::Motors motor; //Keeps track of which Motor Enum the Motor was initialized to 00010 int currDir; //Keeps track of what the current direction of the motor is 00011 float currSpeed; //Keeps track of what the current speed of the motor is 00012 public: 00013 Motor(LineData); 00014 int interpret(LineData&); 00015 int off(); 00016 enum BridgeDriver::Motors getMotor(); 00017 int pause(); 00018 int resume(); 00019 //void enableBrake(); 00020 //int forceBrake(); 00021 //int forceFloat(); 00022 //float drive(); 00023 }; 00024 00025 #endif
Generated on Sun Jul 24 2022 01:49:11 by 1.7.2