blob: 34d6780ac90693f9afdb64fa936818e7351e8d0c [file] [log] [blame]
jerrymf1579332013-02-07 01:56:28 +00001/*----------------------------------------------------------------------------*/
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 */
15class PIDSource
16{
17public:
18 virtual double PIDGet() = 0;
19};
20
21#endif