SparkMaxConfig
- class rev.SparkMaxConfig
Bases:
SparkBaseConfig- class DataPortConfig(value: SupportsInt | SupportsIndex)
Bases:
pybind11_objectMembers:
kInvalid
kLimitSwitchesAndAbsoluteEncoder
kAlternateEncoder
- kAlternateEncoder = <DataPortConfig.kAlternateEncoder: 1>
- kInvalid = <DataPortConfig.kInvalid: -1>
- kLimitSwitchesAndAbsoluteEncoder = <DataPortConfig.kLimitSwitchesAndAbsoluteEncoder: 0>
- SparkMaxConfig.DataPortConfig.name -> str
- property value
- property alternateEncoder
- apply(*args, **kwargs)
Overloaded function.
apply(self: rev._rev.SparkMaxConfig, config: rev._rev.SparkBaseConfig) -> rev._rev.SparkMaxConfig
Applies settings from a SparkBaseConfig to this one; primarily used to apply Presets.
Settings in the provided config will overwrite existing values in this object. Settings not specified in the provided config remain unchanged.
- Parameters:
config – The SparkBaseConfig to copy settings from
- Returns:
The updated SparkMaxConfig for method chaining
apply(self: rev._rev.SparkMaxConfig, config: rev._rev.SparkMaxConfig) -> rev._rev.SparkMaxConfig
Applies settings from another SparkMaxConfig to this one, including all of its nested configurations.
Settings in the provided config will overwrite existing values in this object. Settings not specified in the provided config remain unchanged.
- Parameters:
config – The SparkMaxConfig to copy settings from
- Returns:
The updated SparkMaxConfig for method chaining
apply(self: rev._rev.SparkMaxConfig, config: rev._rev.AlternateEncoderConfig) -> rev._rev.SparkMaxConfig
Applies settings from an AlternateEncoderConfig to this SparkMaxConfig.
Settings in the provided config will overwrite existing values in this object. Settings not specified in the provided config remain unchanged.
- Parameters:
config – The AlternateEncoderConfig to copy settings from
- Returns:
The updated SparkMaxConfig for method chaining
apply(self: rev._rev.SparkMaxConfig, config: rev._rev.SparkBaseConfig) -> rev._rev.SparkMaxConfig
apply(self: rev._rev.SparkMaxConfig, config: rev._rev.AbsoluteEncoderConfig) -> rev._rev.SparkMaxConfig
apply(self: rev._rev.SparkMaxConfig, config: rev._rev.AnalogSensorConfig) -> rev._rev.SparkMaxConfig
apply(self: rev._rev.SparkMaxConfig, config: rev._rev.EncoderConfig) -> rev._rev.SparkMaxConfig
apply(self: rev._rev.SparkMaxConfig, config: rev._rev.LimitSwitchConfig) -> rev._rev.SparkMaxConfig
apply(self: rev._rev.SparkMaxConfig, config: rev._rev.SoftLimitConfig) -> rev._rev.SparkMaxConfig
apply(self: rev._rev.SparkMaxConfig, config: rev._rev.ClosedLoopConfig) -> rev._rev.SparkMaxConfig
apply(self: rev._rev.SparkMaxConfig, config: rev._rev.SignalsConfig) -> rev._rev.SparkMaxConfig
- flatten() str