RaidZeroLib
Coroutine robot framework for VEX V5
Loading...
Searching...
No Matches
Motor.hpp
1#pragma once
2#include "RaidZeroLib/api/Units/Units.hpp"
3
4namespace rz {
5
13class Motor {
14 public:
15 Motor() = default;
16 Motor(const Motor&) = delete;
17 Motor& operator=(const Motor&) = delete;
18 Motor(Motor&&) = delete;
19 Motor& operator=(Motor&&) = delete;
20 virtual ~Motor() = default;
21
23 virtual void setVoltage(Voltage voltage) = 0;
24
25 [[nodiscard]] virtual bool connected() const = 0;
26};
27
28} // namespace rz
Motor(Motor &&)=delete
virtual ~Motor()=default
Motor & operator=(Motor &&)=delete
virtual bool connected() const =0
Motor()=default
Motor & operator=(const Motor &)=delete
Motor(const Motor &)=delete
virtual void setVoltage(Voltage voltage)=0
Commands a voltage, clamped to the motor's range. Positive drives the mechanism forward.
au::QuantityD< au::Volts > Voltage
Definition Units.hpp:15
Definition DriverControl.hpp:11