pub struct PWM { /* fields omitted */ }
Set the PWM value directly to the hardware.
Get the PWM value directly from the hardware.
Set the PWM value based on a position. pos
must be between 0 and 1.
Get the PWM value in terms of a position.
Set the PWM value based on a speed between -1 and 1.
Get the PWM value in terms of speed.
Temporarily disables the PWM output. The next set call will re-enable.
Slow down the PWM signal for old devices.
Honestly, I have no idea what this does and it isn't documented in wpilib.
Optionally eliminate the deadband from a speed controller.
Set the bounds on the PWM pulse widths. This sets the bounds on the PWM values for a
particular type of controller. The values determine the upper and lower speeds as well as
the deadband bracket.
Set the bounds on the PWM values. This sets the bounds on the PWM values for a particular
each type of controller. The values determine the upper and lower speeds as well as the
deadband bracket.
Get the bounds on the PWM values. This Gets the bounds on the PWM values for a particular
each type of controller. The values determine the upper and lower speeds as well as the
deadband bracket.
Get the channel of this device.
Executes the destructor for this type. Read more
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static