WPILibC++  unspecified
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
PIDInterface.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) FIRST 2016. 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 #include "Controller.h"
12 #include "LiveWindow/LiveWindow.h"
13 
14 class PIDInterface : public Controller {
15  virtual void SetPID(double p, double i, double d) = 0;
16  virtual double GetP() const = 0;
17  virtual double GetI() const = 0;
18  virtual double GetD() const = 0;
19 
20  virtual void SetSetpoint(float setpoint) = 0;
21  virtual double GetSetpoint() const = 0;
22 
23  virtual void Enable() = 0;
24  virtual void Disable() = 0;
25  virtual bool IsEnabled() const = 0;
26 
27  virtual void Reset() = 0;
28 };
Interface for Controllers Common interface for controllers.
Definition: Controller.h:18
Definition: PIDInterface.h:14