Brian Silverman | 26e4e52 | 2015-12-17 01:56:40 -0500 | [diff] [blame^] | 1 | /*----------------------------------------------------------------------------*/ |
| 2 | /* Copyright (c) FIRST 2008. All Rights Reserved. |
| 3 | */ |
| 4 | /* Open Source Software - may be modified and shared by FRC teams. The code */ |
| 5 | /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */ |
| 6 | /*----------------------------------------------------------------------------*/ |
| 7 | #pragma once |
| 8 | |
| 9 | #include "Base.h" |
| 10 | |
| 11 | /** |
| 12 | * PIDOutput interface is a generic output for the PID class. |
| 13 | * PWMs use this class. |
| 14 | * Users implement this interface to allow for a PIDController to |
| 15 | * read directly from the inputs |
| 16 | */ |
| 17 | class PIDOutput { |
| 18 | public: |
| 19 | virtual void PIDWrite(float output) = 0; |
| 20 | }; |