55 std::string m_deviceName;
57 static std::map<int, std::string> s_simDeviceMap;
58 static std::set<int> s_registeredDevices;
60 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.
void SetDutyCycle(double value) override
Sets the duty cycle 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.
double GetDutyCycle() const override
Gets the duty cycle 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.
#define WPI_IGNORE_DEPRECATED
Definition deprecated.hpp:15
#define WPI_UNIGNORE_DEPRECATED
Definition deprecated.hpp:26
Definition XRPOnBoardIO.hpp:13