|
WPILibC++
2020.3.2
|
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::Filter, and frc::Potentiometer.