Package com.revrobotics.spark.config
Class SparkMaxConfig
java.lang.Object
com.revrobotics.config.BaseConfig
com.revrobotics.spark.config.SparkBaseConfig
com.revrobotics.spark.config.SparkMaxConfig
-
Nested Class Summary
Nested classes/interfaces inherited from class com.revrobotics.spark.config.SparkBaseConfig
SparkBaseConfig.IdleModeNested classes/interfaces inherited from class com.revrobotics.config.BaseConfig
BaseConfig.CANType -
Field Summary
FieldsFields inherited from class com.revrobotics.spark.config.SparkBaseConfig
absoluteEncoder, analogSensor, closedLoop, encoder, limitSwitch, signals, softLimit -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(AlternateEncoderConfig config) Applies settings from anAlternateEncoderConfigto thisSparkMaxConfig.apply(SparkMaxConfig config) Applies settings from anotherSparkMaxConfigto this one, including all of its nested configurations.flatten()Methods inherited from class com.revrobotics.spark.config.SparkBaseConfig
apply, apply, apply, apply, apply, apply, apply, apply, closedLoopRampRate, disableFollowerMode, disableVoltageCompensation, follow, follow, follow, follow, idleMode, inverted, openLoopRampRate, secondaryCurrentLimit, secondaryCurrentLimit, smartCurrentLimit, smartCurrentLimit, smartCurrentLimit, voltageCompensationMethods inherited from class com.revrobotics.config.BaseConfig
apply, getParameter, getParameter, putParameter, putParameter, putParameter, removeParameter, removeParameter
-
Field Details
-
alternateEncoder
-
-
Constructor Details
-
SparkMaxConfig
public SparkMaxConfig()
-
-
Method Details
-
apply
Applies settings from anotherSparkMaxConfigto 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- TheSparkMaxConfigto copy settings from- Returns:
- The updated
SparkMaxConfigfor method chaining
-
apply
Applies settings from anAlternateEncoderConfigto thisSparkMaxConfig.Settings in the provided config will overwrite existing values in this object. Settings not specified in the provided config remain unchanged.
- Parameters:
config- TheAlternateEncoderConfigto copy settings from- Returns:
- The updated
SparkMaxConfigfor method chaining
-
flatten
- Overrides:
flattenin classSparkBaseConfig
-