jerrym | f157933 | 2013-02-07 01:56:28 +0000 | [diff] [blame^] | 1 | /*----------------------------------------------------------------------------*/
|
| 2 | /* Copyright (c) FIRST 2008. 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 $(WIND_BASE)/WPILib. */
|
| 5 | /*----------------------------------------------------------------------------*/
|
| 6 |
|
| 7 | #ifndef PID_SOURCE_H
|
| 8 | #define PID_SOURCE_H
|
| 9 |
|
| 10 | /**
|
| 11 | * PIDSource interface is a generic sensor source for the PID class.
|
| 12 | * All sensors that can be used with the PID class will implement the PIDSource that
|
| 13 | * returns a standard value that will be used in the PID code.
|
| 14 | */
|
| 15 | class PIDSource
|
| 16 | {
|
| 17 | public:
|
| 18 | virtual double PIDGet() = 0;
|
| 19 | };
|
| 20 |
|
| 21 | #endif
|