WPILibC++  unspecified
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
Potentiometer.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) FIRST 2008-2016. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in the root directory of */
5 /* the project. */
6 /*----------------------------------------------------------------------------*/
7 
8 #ifndef INTERFACES_POTENTIOMETER_H
9 #define INTERFACES_POTENTIOMETER_H
10 
11 #include "PIDSource.h"
12 
16 class Potentiometer : public PIDSource {
17  public:
18  virtual ~Potentiometer() = default;
19 
25  virtual double Get() const = 0;
26 
27  virtual void SetPIDSourceType(PIDSourceType pidSource) override;
28 };
29 
30 #endif
virtual void SetPIDSourceType(PIDSourceType pidSource) override
Set which parameter you are using as a process control variable.
Definition: Potentiometer.cpp:11
Interface for potentiometers.
Definition: Potentiometer.h:16
PIDSource interface is a generic sensor source for the PID class.
Definition: PIDSource.h:18
virtual double Get() const =0
Common interface for getting the current value of a potentiometer.