WPILibC++  2020.3.2
PIDInterface.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2016-2019 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 #include <wpi/deprecated.h>
11 
12 namespace frc {
13 
14 class PIDInterface {
15  public:
16  WPI_DEPRECATED("All APIs which use this have been deprecated.")
17  PIDInterface() = default;
18  PIDInterface(PIDInterface&&) = default;
19  PIDInterface& operator=(PIDInterface&&) = default;
20 
21  virtual void SetPID(double p, double i, double d) = 0;
22  virtual double GetP() const = 0;
23  virtual double GetI() const = 0;
24  virtual double GetD() const = 0;
25 
26  virtual void SetSetpoint(double setpoint) = 0;
27  virtual double GetSetpoint() const = 0;
28 
29  virtual void Reset() = 0;
30 };
31 
32 } // namespace frc
frc::PIDInterface
Definition: PIDInterface.h:14
frc
A class that enforces constraints on the differential drive kinematics.
Definition: SPIAccelerometerSim.h:16