40 void Set(
double value)
override;
41 double Get()
const override;
56 std::string m_deviceName;
58 static std::map<int, std::string> s_simDeviceMap;
59 static std::set<int> s_registeredDevices;
61 static void CheckDeviceAllocation(
int deviceNum);
Interface for motor controlling devices.
Definition MotorController.h:14
The Motor Safety feature acts as a watchdog timer for an individual motor.
Definition MotorSafety.h:25
XRPMotor.
Definition XRPMotor.h:31
XRPMotor(int deviceNum)
Constructs an XRPMotor.
void StopMotor() override
Common interface to stop the motor until Set is called again.
void Disable() override
Common interface for disabling a motor.
void Set(double value) override
Common interface for setting the speed of a motor controller.
void SetInverted(bool isInverted) override
Common interface for inverting direction of a motor controller.
std::string GetDescription() const override
Returns a description to print when an error occurs.
bool GetInverted() const override
Common interface for returning the inversion state of a motor controller.
double Get() const override
Common interface for getting the current set speed of a motor controller.
C++ wrapper around a HAL simulator boolean value handle.
Definition SimDevice.h:611
A move-only C++ wrapper around a HAL simulator device handle.
Definition SimDevice.h:645
C++ wrapper around a HAL simulator double value handle.
Definition SimDevice.h:536
#define WPI_IGNORE_DEPRECATED
Definition deprecated.h:16
#define WPI_UNIGNORE_DEPRECATED
Definition deprecated.h:27