WPILibC++  unspecified
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
PIDSource Class Referenceabstract

PIDSource interface is a generic sensor source for the PID class. More...

#include <PIDSource.h>

Inheritance diagram for PIDSource:
AnalogAccelerometer AnalogInput CANTalon Encoder Filter GyroBase PIDCommand PIDSubsystem Potentiometer Ultrasonic

Public Member Functions

virtual void SetPIDSourceType (PIDSourceType pidSource)
 Set which parameter you are using as a process control variable. More...
 
PIDSourceType GetPIDSourceType () const
 
virtual double PIDGet ()=0
 

Protected Attributes

PIDSourceType m_pidSource = PIDSourceType::kDisplacement
 

Detailed Description

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.

Member Function Documentation

void PIDSource::SetPIDSourceType ( PIDSourceType  pidSource)
virtual

Set which parameter you are using as a process control variable.

Parameters
pidSourceAn enum to select the parameter.

Reimplemented in Ultrasonic, Potentiometer, and Filter.


The documentation for this class was generated from the following files: