cleaned up motor class with separate header and .cpp files
Dependencies: mbed
Dependents: TerraBot_Drive_2D TerraBot_Drive_2D TerraBot_Drive_2D_FINAL DUMP_TRUCK_Test ... more
Motor Class Reference
Interface for controlling the dump truck's motors. More...
#include <Motor.h>
Public Member Functions | |
Motor (PinName pwm, PinName dir) | |
Constructor for the Motor object. | |
void | write (float Val) |
Command the motor to run at a desired speed. | |
float | read () |
Read the speed of the motor. |
Detailed Description
Interface for controlling the dump truck's motors.
Definition at line 21 of file Motor.h.
Constructor & Destructor Documentation
Motor | ( | PinName | pwm, |
PinName | dir | ||
) |
Member Function Documentation
Generated on Thu Jul 14 2022 07:23:14 by 1.7.2