2013-12-15 18:30:16 -05:00
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
/* Copyright (c) FIRST 2008. All Rights Reserved. */
|
|
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
|
|
|
/* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
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.
|
|
|
|
|
* Users implement this interface to allow for a PIDController to
|
|
|
|
|
* read directly from the inputs
|
|
|
|
|
*/
|
|
|
|
|
class PIDOutput
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
virtual void PIDWrite(float output) = 0;
|
|
|
|
|
};
|