blob: efa4255ca6aee7a2bf649506e1d7264fe9901d6d [file] [log] [blame]
Brian Silvermanf7f267a2017-02-04 16:16:08 -08001/*----------------------------------------------------------------------------*/
2/* Copyright (c) FIRST 2008-2017. 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#pragma once
9
10#include "Base.h"
11
12namespace frc {
13
14/**
15 * PIDOutput interface is a generic output for the PID class.
16 * PWMs use this class.
17 * Users implement this interface to allow for a PIDController to
18 * read directly from the inputs.
19 */
20class PIDOutput {
21 public:
22 virtual void PIDWrite(double output) = 0;
23};
24
25} // namespace frc