#include <ServoChannelConfig.h>
Inherits rev::BaseConfig.
◆ BehaviorWhenDisabled
Enumerator |
---|
kDoNotSupplyPower | |
kSupplyPower | |
◆ ServoChannelConfig() [1/3]
◆ ~ServoChannelConfig()
rev::servohub::ServoChannelConfig::~ServoChannelConfig |
( |
| ) |
|
|
overridedefault |
◆ ServoChannelConfig() [2/3]
◆ ServoChannelConfig() [3/3]
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ Apply()
Applies settings from another ServoChannelConfig to this one.
Settings in the provided config will overwrite existing values in this object. Settings not specified in the provided config remain unchanged.
- Parameters
-
- Returns
- The updated ServoChannelConfig for method chaining
◆ PulseRange() [1/2]
ServoChannelConfig & ServoChannelConfig::PulseRange |
( |
uint32_t |
minPulse_us, |
|
|
uint32_t |
centerPulse_us, |
|
|
uint32_t |
maxPulse_us |
|
) |
| |
Set the min/center/max pulse widths on this channel.
- Parameters
-
[in] | minPulse_us | The minimum pulse width (in microseconds) |
[in] | centerPulse_us | The center pulse width (in microseconds) |
[in] | maxPulse_us | The maximum pulse width (in microseconds) |
- Returns
- The modified ServoChannelConfig object for method chaining
◆ PulseRange() [2/2]
Set the min/center/max pulse widths on this channel.
- Parameters
-
[in] | pulseRange_us | The minimum/center/max pulse widths (in microseconds) |
- Returns
- The modified ServoChannelConfig object for method chaining
◆ DisableBehavior()
Set the output power behavior when the channel is disabled.
When the channel is enabled [ServoChannel::SetEnabled(true)], the output power to the servo follows the channel's power setting [ServoChannel::SetPowered()].
When the channel is disabled [ServoChannel::SetEnabled(false)], the output power to the servo follows the channel's disableBehavior.
- Parameters
-
[in] | behavior | The disable behavior as described above. |
- Returns
- The modified ServoChannelConfig object for method chaining
The documentation for this class was generated from the following files: