52 std::string m_deviceName;
54 static std::map<int, std::string> s_simDeviceMap;
55 static std::set<int> s_registeredDevices;
57 static void CheckDeviceAllocation(
int deviceNum);
Interface for motor controlling devices.
Definition MotorController.hpp:14
The Motor Safety feature acts as a watchdog timer for an individual motor.
Definition MotorSafety.hpp:24
C++ wrapper around a HAL simulator boolean value handle.
Definition SimDevice.hpp:244
A move-only C++ wrapper around a HAL simulator device handle.
Definition SimDevice.hpp:278
C++ wrapper around a HAL simulator double value handle.
Definition SimDevice.hpp:169
XRPMotor(int deviceNum)
Constructs an XRPMotor.
double GetThrottle() const override
Gets the throttle of the motor controller.
void StopMotor() override
Called to stop the motor when the timeout expires.
void SetInverted(bool isInverted) override
Sets the inversion state of the motor controller.
void SetThrottle(double throttle) override
Sets the throttle of the motor controller.
std::string GetDescription() const override
Returns a description to print when an error occurs.
bool GetInverted() const override
Gets the inversion state of the motor controller.
void Disable() override
Disables the motor controller.
Definition XRPOnBoardIO.hpp:13