Class PIDAnalogPotentiometer

java.lang.Object
edu.wpi.first.wpilibj.AnalogPotentiometer
edu.wpi.first.wpilibj.pidwrappers.PIDAnalogPotentiometer
All Implemented Interfaces:
Sendable, PIDSource, AutoCloseable

@Deprecated(since="2022",
            forRemoval=true)
public class PIDAnalogPotentiometer
extends AnalogPotentiometer
implements PIDSource
Deprecated, for removal: This API element is subject to removal in a future version.
Use PIDController which doesn't require this wrapper.
Wrapper so that PIDSource is implemented for AnalogPotentiometer for old PIDController.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected PIDSourceType m_pidSource
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors 
    Constructor Description
    PIDAnalogPotentiometer​(int channel)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    PIDAnalogPotentiometer​(int channel, double scale)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    PIDAnalogPotentiometer​(int channel, double fullRange, double offset)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    PIDAnalogPotentiometer​(AnalogInput input)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    PIDAnalogPotentiometer​(AnalogInput input, double scale)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    PIDAnalogPotentiometer​(AnalogInput input, double fullRange, double offset)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • 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.
    Implement the PIDSource interface.
    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.

    Methods inherited from class edu.wpi.first.wpilibj.AnalogPotentiometer

    close, get, initSendable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait