Class AnalogSensorConfig

java.lang.Object
com.revrobotics.config.BaseConfig
com.revrobotics.spark.config.AnalogSensorConfig

public class AnalogSensorConfig extends BaseConfig
  • Constructor Details

    • AnalogSensorConfig

      public AnalogSensorConfig()
      Create a new object to configure an AnalogSensor.
  • Method Details

    • apply

      public AnalogSensorConfig apply(AnalogSensorConfig config)
      Applies settings from another AnalogSensorConfig to 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 - The AnalogSensorConfig to copy settings from
      Returns:
      The updated AnalogSensorConfig for method chaining
    • inverted

      public AnalogSensorConfig inverted(boolean 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 AnalogSensorConfig object for method chaining