2013-12-15 18:30:16 -05:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2016-01-02 03:02:34 -08:00
|
|
|
/* Copyright (c) FIRST 2008-2016. All Rights Reserved. */
|
2013-12-15 18:30:16 -05:00
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
2016-01-02 03:02:34 -08:00
|
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
|
|
|
/* the project. */
|
2013-12-15 18:30:16 -05:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2016-01-02 03:02:34 -08:00
|
|
|
|
2014-05-02 17:54:01 -04:00
|
|
|
#pragma once
|
2013-12-15 18:30:16 -05:00
|
|
|
|
|
|
|
|
#include "Base.h"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PIDOutput interface is a generic output for the PID class.
|
|
|
|
|
* PWMs use this class.
|
2015-06-25 15:07:55 -04:00
|
|
|
* Users implement this interface to allow for a PIDController to
|
2016-05-20 17:30:37 -07:00
|
|
|
* read directly from the inputs.
|
2013-12-15 18:30:16 -05:00
|
|
|
*/
|
2015-06-25 15:07:55 -04:00
|
|
|
class PIDOutput {
|
|
|
|
|
public:
|
|
|
|
|
virtual void PIDWrite(float output) = 0;
|
2013-12-15 18:30:16 -05:00
|
|
|
};
|