Package com.revrobotics.spark.config
Class SparkFlexConfig
java.lang.Object
com.revrobotics.spark.config.BaseConfig
com.revrobotics.spark.config.SparkBaseConfig
com.revrobotics.spark.config.SparkFlexConfig
-
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
(ExternalEncoderConfig config) Applies settings from anExternalEncoderConfig
to thisSparkFlexConfig
.apply
(SparkFlexConfig config) Applies settings from anotherSparkFlexConfig
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
-
externalEncoder
-
-
Constructor Details
-
SparkFlexConfig
public SparkFlexConfig()
-
-
Method Details
-
apply
Applies settings from anotherSparkFlexConfig
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
- TheSparkFlexConfig
to copy settings from- Returns:
- The updated
SparkFlexConfig
for method chaining
-
apply
Applies settings from anExternalEncoderConfig
to thisSparkFlexConfig
.Settings in the provided config will overwrite existing values in this object. Settings not specified in the provided config remain unchanged.
- Parameters:
config
- TheExternalEncoderConfig
to copy settings from- Returns:
- The updated
SparkFlexConfig
for method chaining
-
flatten
- Overrides:
flatten
in classSparkBaseConfig
-