Package com.revrobotics.spark.config
Class SparkMaxConfig
java.lang.Object
com.revrobotics.spark.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.IdleMode
-
Field Summary
Fields inherited from class com.revrobotics.spark.config.SparkBaseConfig
absoluteEncoder, analogSensor, closedLoop, encoder, limitSwitch, signals, softLimit
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(AlternateEncoderConfig config) Applies settings from anAlternateEncoderConfig
to thisSparkMaxConfig
.apply
(SparkMaxConfig config) Applies settings from anotherSparkMaxConfig
to 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, voltageCompensation
-
Field Details
-
alternateEncoder
-
-
Constructor Details
-
SparkMaxConfig
public SparkMaxConfig()
-
-
Method Details
-
apply
Applies settings from anotherSparkMaxConfig
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
- TheSparkMaxConfig
to copy settings from- Returns:
- The updated
SparkMaxConfig
for method chaining
-
apply
Applies settings from anAlternateEncoderConfig
to thisSparkMaxConfig
.Settings in the provided config will overwrite existing values in this object. Settings not specified in the provided config remain unchanged.
- Parameters:
config
- TheAlternateEncoderConfig
to copy settings from- Returns:
- The updated
SparkMaxConfig
for method chaining
-
flatten
- Overrides:
flatten
in classSparkBaseConfig
-