DetachedSignalsConfig
- class rev.DetachedSignalsConfig
Bases:
BaseConfig- apply(config: rev._rev.DetachedSignalsConfig) rev._rev.DetachedSignalsConfig
Applies settings from another SignalsConfig 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:
config – The SignalsConfig to copy settings from
- Returns:
The updated SignalsConfig for method chaining
- encoderAnglePeriodMs(period_ms: SupportsInt | SupportsIndex) rev._rev.DetachedSignalsConfig
Set the period (ms) of the status frame that provides the signal returned by DetachedEncoder::GetAngle(). The default period is 20ms.
If multiple periods are set for signals within the same status frame, the minimum given value will be used.
- Parameters:
periodMs – The period in milliseconds
- Returns:
The modified SignalsConfig object for method chaining
- encoderPositionPeriodMs(period_ms: SupportsInt | SupportsIndex) rev._rev.DetachedSignalsConfig
Set the period (ms) of the status frame that provides the signal returned by DetachedEncoder::GetPosition(). The default period is 20ms.
If multiple periods are set for signals within the same status frame, the minimum given value will be used.
- Parameters:
periodMs – The period in milliseconds
- Returns:
The modified SignalsConfig object for method chaining
- encoderVelocityPeriodMs(period_ms: SupportsInt | SupportsIndex) rev._rev.DetachedSignalsConfig
Set the period (ms) of the status frame that provides the signal returned by DetachedEncoder::GetVelocity(). The default period is 20ms.
If multiple periods are set for signals within the same status frame, the minimum given value will be used.
- Parameters:
periodMs – The period in milliseconds
- Returns:
The modified SignalsConfig object for method chaining