WPILibC++
2019.3.1
|
PIDSource interface is a generic sensor source for the PID class. More...
#include <PIDSource.h>
Public Member Functions | |
virtual void | SetPIDSourceType (PIDSourceType pidSource) |
Set which parameter you are using as a process control variable. More... | |
virtual PIDSourceType | GetPIDSourceType () const |
virtual double | PIDGet ()=0 |
Protected Attributes | |
PIDSourceType | m_pidSource = PIDSourceType::kDisplacement |
PIDSource interface is a generic sensor source for the PID class.
All sensors that can be used with the PID class will implement the PIDSource that returns a standard value that will be used in the PID code.
|
virtual |
Set which parameter you are using as a process control variable.
pidSource | An enum to select the parameter. |
Reimplemented in frc::Ultrasonic, frc::Potentiometer, and frc::Filter.