Class AnalogSensorConfig
java.lang.Object
com.revrobotics.config.BaseConfig
com.revrobotics.spark.config.AnalogSensorConfig
-
Nested Class Summary
Nested classes/interfaces inherited from class BaseConfig
BaseConfig.CANType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(AnalogSensorConfig config) Applies settings from anotherAnalogSensorConfigto this one.inverted(boolean inverted) Set the phase of the analog sensor so that it is in phase with the motor itself.Methods inherited from class BaseConfig
apply, flatten, getParameter, getParameter, putParameter, putParameter, putParameter, removeParameter, removeParameter
-
Constructor Details
-
AnalogSensorConfig
public AnalogSensorConfig()Create a new object to configure an AnalogSensor.
-
-
Method Details
-
apply
Applies settings from anotherAnalogSensorConfigto this one.Settings in the provided config will overwrite existing values in this object. Settings not specified in the provided config remain unchanged.
- Parameters:
config- TheAnalogSensorConfigto copy settings from- Returns:
- The updated
AnalogSensorConfigfor method chaining
-
inverted
Set the phase of the analog sensor so that it is in phase with the motor itself.- Parameters:
inverted- The phase of the analog sensor- Returns:
- The modified
AnalogSensorConfigobject for method chaining
-