Class PIDAnalogAccelerometer
- java.lang.Object
-
- edu.wpi.first.wpilibj.AnalogAccelerometer
-
- edu.wpi.first.wpilibj.pidwrappers.PIDAnalogAccelerometer
-
- All Implemented Interfaces:
Sendable
,PIDSource
,AutoCloseable
@Deprecated(since="2022", forRemoval=true) public class PIDAnalogAccelerometer extends AnalogAccelerometer implements PIDSource
Deprecated, for removal: This API element is subject to removal in a future version.UsePIDController
which doesn't require this wrapper.Wrapper so that PIDSource is implemented for AnalogAccelerometer 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 PIDAnalogAccelerometer(int channel)
Deprecated, for removal: This API element is subject to removal in a future version.PIDAnalogAccelerometer(AnalogInput channel)
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods 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 Acceleration for the PID Source parent.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.AnalogAccelerometer
close, getAcceleration, initSendable, setSensitivity, setZero
-
-
-
-
Field Detail
-
m_pidSource
protected PIDSourceType m_pidSource
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Detail
-
PIDAnalogAccelerometer
public PIDAnalogAccelerometer(int channel)
Deprecated, for removal: This API element is subject to removal in a future version.
-
PIDAnalogAccelerometer
public PIDAnalogAccelerometer(AnalogInput channel)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Detail
-
setPIDSourceType
public void setPIDSourceType(PIDSourceType pidSource)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:PIDSource
Set which parameter of the device you are using as a process control variable.- Specified by:
setPIDSourceType
in interfacePIDSource
- Parameters:
pidSource
- An enum to select the parameter.
-
getPIDSourceType
public PIDSourceType getPIDSourceType()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:PIDSource
Get which parameter of the device you are using as a process control variable.- Specified by:
getPIDSourceType
in interfacePIDSource
- Returns:
- the currently selected PID source parameter
-
-