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

Interface for potentiometers. More...

#include <Potentiometer.h>

Inheritance diagram for Potentiometer:
PIDSource AnalogPotentiometer

Public Member Functions

virtual double Get () const =0
 Common interface for getting the current value of a potentiometer. More...
 
virtual void SetPIDSourceType (PIDSourceType pidSource) override
 Set which parameter you are using as a process control variable. More...
 
- Public Member Functions inherited from PIDSource
PIDSourceType GetPIDSourceType () const
 
virtual double PIDGet ()=0
 

Additional Inherited Members

- Protected Attributes inherited from PIDSource
PIDSourceType m_pidSource = PIDSourceType::kDisplacement
 

Detailed Description

Interface for potentiometers.

Member Function Documentation

virtual double Potentiometer::Get ( ) const
pure virtual

Common interface for getting the current value of a potentiometer.

Returns
The current set speed. Value is between -1.0 and 1.0.

Implemented in AnalogPotentiometer.

void Potentiometer::SetPIDSourceType ( PIDSourceType  pidSource)
overridevirtual

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

Parameters
pidSourceAn enum to select the parameter.

Reimplemented from PIDSource.


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