![]() |
RaidZeroLib
Coroutine robot framework for VEX V5
|
Something that turns a voltage into motion: a V5 motor, a motor group, a simulated motor, a power-takeoff port, or a test mock. More...
#include <Motor.hpp>
Public Member Functions | |
| Motor ()=default | |
| Motor (const Motor &)=delete | |
| Motor & | operator= (const Motor &)=delete |
| Motor (Motor &&)=delete | |
| Motor & | operator= (Motor &&)=delete |
| virtual | ~Motor ()=default |
| virtual void | setVoltage (Voltage voltage)=0 |
| Commands a voltage, clamped to the motor's range. Positive drives the mechanism forward. | |
| virtual bool | connected () const =0 |
Something that turns a voltage into motion: a V5 motor, a motor group, a simulated motor, a power-takeoff port, or a test mock.
Feedback is deliberately not part of this interface. Anything that needs it takes a Sensor<T>&, which can be a motor's built-in encoder or an external sensor.
|
default |
|
delete |
|
delete |
|
virtualdefault |
|
nodiscardpure virtual |
Implemented in rz::MotorDevice, rz::MotorGroup, and rz::SimulationMotor.
|
pure virtual |
Commands a voltage, clamped to the motor's range. Positive drives the mechanism forward.
Implemented in rz::MotorDevice, rz::MotorGroup, and rz::SimulationMotor.