11 #include "SpeedController.h"
12 #include "PIDOutput.h"
21 virtual void Set(
float value, uint8_t syncGroup = 0)
override;
22 virtual float Get()
const override;
23 virtual void Disable()
override;
26 virtual void PIDWrite(
float output)
override;
32 bool m_isInverted =
false;
virtual void Set(float value, uint8_t syncGroup=0) override
Set the PWM value.
Definition: VictorSP.cpp:53
virtual float Get() const override
Get the recently set value of the PWM.
Definition: VictorSP.cpp:62
Vex Robotics Victor SP Speed Controller.
Definition: VictorSP.h:17
virtual void PIDWrite(float output) override
Write out the PID value as seen in the PIDOutput base object.
Definition: VictorSP.cpp:88
A safe version of the PWM class.
Definition: SafePWM.h:25
virtual bool GetInverted() const override
Common interface for the inverting direction of a speed controller.
Definition: VictorSP.cpp:76
VictorSP(uint32_t channel)
Note that the VictorSP uses the following bounds for PWM values.
Definition: VictorSP.cpp:34
virtual void StopMotor() override
Common interface to stop the motor until Set is called again.
Definition: VictorSP.cpp:93
Interface for speed controlling devices.
Definition: SpeedController.h:16
virtual void SetInverted(bool isInverted) override
Common interface for inverting direction of a speed controller.
Definition: VictorSP.cpp:68
virtual void Disable() override
Common interface for disabling a motor.
Definition: VictorSP.cpp:81