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