Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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