11 #include "SpeedController.h"
12 #include "PIDOutput.h"
19 explicit Talon(uint32_t channel);
20 virtual ~
Talon() =
default;
21 virtual void Set(
float value, uint8_t syncGroup = 0)
override;
22 virtual float Get()
const override;
23 virtual void Disable()
override;
25 virtual void PIDWrite(
float output)
override;
31 bool m_isInverted =
false;
Cross the Road Electronics (CTRE) Talon and Talon SR Speed Controller.
Definition: Talon.h:17
virtual void PIDWrite(float output) override
Write out the PID value as seen in the PIDOutput base object.
Definition: Talon.cpp:84
A safe version of the PWM class.
Definition: SafePWM.h:25
virtual void SetInverted(bool isInverted) override
common interface for inverting direction of a speed controller
Definition: Talon.cpp:69
virtual void Set(float value, uint8_t syncGroup=0) override
Set the PWM value.
Definition: Talon.cpp:49
Talon(uint32_t channel)
Constructor for a Talon (original or Talon SR)
Definition: Talon.cpp:17
Interface for speed controlling devices.
Definition: SpeedController.h:16
virtual void StopMotor() override
Common interface to stop the motor until Set is called again.
Definition: Talon.cpp:89
virtual bool GetInverted() const override
Common interface for the inverting direction of a speed controller.
Definition: Talon.cpp:77
virtual float Get() const override
Get the recently set value of the PWM.
Definition: Talon.cpp:58
virtual void Disable() override
Common interface for disabling a motor.
Definition: Talon.cpp:63