|
| Servo (int channel) |
|
| Servo (Servo &&)=default |
|
Servo & | operator= (Servo &&)=default |
|
void | Set (double value) |
| Set the servo position. More...
|
|
void | SetOffline () |
| Set the servo to offline. More...
|
|
double | Get () const |
| Get the servo position. More...
|
|
void | SetAngle (double angle) |
| Set the servo angle. More...
|
|
double | GetAngle () const |
| Get the servo angle. More...
|
|
double | GetMaxAngle () const |
| Get the maximum angle of the servo. More...
|
|
double | GetMinAngle () const |
| Get the minimum angle of the servo. More...
|
|
void | InitSendable (wpi::SendableBuilder &builder) override |
| Initializes this Sendable object. More...
|
|
| PWM (int channel, bool registerSendable=true) |
| Allocate a PWM given a channel number. More...
|
|
| ~PWM () override |
| Free the PWM channel. More...
|
|
| PWM (PWM &&)=default |
|
PWM & | operator= (PWM &&)=default |
|
virtual void | SetRaw (uint16_t value) |
| Set the PWM value directly to the hardware. More...
|
|
virtual uint16_t | GetRaw () const |
| Get the PWM value directly from the hardware. More...
|
|
virtual void | SetPosition (double pos) |
| Set the PWM value based on a position. More...
|
|
virtual double | GetPosition () const |
| Get the PWM value in terms of a position. More...
|
|
virtual void | SetSpeed (double speed) |
| Set the PWM value based on a speed. More...
|
|
virtual double | GetSpeed () const |
| Get the PWM value in terms of speed. More...
|
|
virtual void | SetDisabled () |
| Temporarily disables the PWM output. More...
|
|
void | SetPeriodMultiplier (PeriodMultiplier mult) |
| Slow down the PWM signal for old devices. More...
|
|
void | SetZeroLatch () |
|
void | EnableDeadbandElimination (bool eliminateDeadband) |
| Optionally eliminate the deadband from a motor controller. More...
|
|
void | SetBounds (double max, double deadbandMax, double center, double deadbandMin, double min) |
| Set the bounds on the PWM pulse widths. More...
|
|
void | SetRawBounds (int max, int deadbandMax, int center, int deadbandMin, int min) |
| Set the bounds on the PWM values. More...
|
|
void | GetRawBounds (int32_t *max, int32_t *deadbandMax, int32_t *center, int32_t *deadbandMin, int32_t *min) |
| Get the bounds on the PWM values. More...
|
|
int | GetChannel () const |
|
virtual | ~Sendable ()=default |
|
virtual void | InitSendable (SendableBuilder &builder)=0 |
| Initializes this Sendable object. More...
|
|
| SendableHelper (const SendableHelper &rhs)=default |
|
| SendableHelper (SendableHelper &&rhs) |
|
SendableHelper & | operator= (const SendableHelper &rhs)=default |
|
SendableHelper & | operator= (SendableHelper &&rhs) |
|
Standard hobby style servo.
The range parameters default to the appropriate values for the Hitec HS-322HD servo provided in the FIRST Kit of Parts in 2008.