WPILibC++  2019.1.1-beta-4-27-ga2368a6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
PIDInterface.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2016-2018 FIRST. 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 namespace frc {
11 
12 class PIDInterface {
13  public:
14  PIDInterface() = default;
15  PIDInterface(PIDInterface&&) = default;
16  PIDInterface& operator=(PIDInterface&&) = default;
17 
18  virtual void SetPID(double p, double i, double d) = 0;
19  virtual double GetP() const = 0;
20  virtual double GetI() const = 0;
21  virtual double GetD() const = 0;
22 
23  virtual void SetSetpoint(double setpoint) = 0;
24  virtual double GetSetpoint() const = 0;
25 
26  virtual void Reset() = 0;
27 };
28 
29 } // namespace frc
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
Definition: PIDInterface.h:12