Interface PIDSource

All Known Implementing Classes:
PIDAnalogAccelerometer, PIDAnalogGyro, PIDAnalogInput, PIDAnalogPotentiometer, PIDEncoder, PIDUltrasonic

@Deprecated(since="2020",
            forRemoval=true)
public interface PIDSource
Deprecated, for removal: This API element is subject to removal in a future version.
Use DoubleSupplier and new PIDController class.
This interface allows for PIDController to automatically read from this object.
  • Method Summary

    Modifier and Type Method Description
    PIDSourceType getPIDSourceType()
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get which parameter of the device you are using as a process control variable.
    double pidGet()
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get the result to use in PIDController.
    void setPIDSourceType​(PIDSourceType pidSource)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Set which parameter of the device you are using as a process control variable.
  • Method Details

    • setPIDSourceType

      void setPIDSourceType​(PIDSourceType pidSource)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set which parameter of the device you are using as a process control variable.
      Parameters:
      pidSource - An enum to select the parameter.
    • getPIDSourceType

      Deprecated, for removal: This API element is subject to removal in a future version.
      Get which parameter of the device you are using as a process control variable.
      Returns:
      the currently selected PID source parameter
    • pidGet

      double pidGet()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get the result to use in PIDController.
      Returns:
      the result to use in PIDController