mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
The changes made in this commit do not affect any actual code,
they are purely aesthetic. I ran clang-format with google style
over all .h/.cpp files in wpilibc that weren't in wpilibC++Sim
or gtest, and the eclipse formatter over all of the Java files
using the Google eclipse formatting configuration.
Change-Id: I9627bca0bc103c398ecc1c5ba17467193291ae63
23 lines
545 B
C++
23 lines
545 B
C++
#pragma once
|
|
|
|
#include "Base.h"
|
|
#include "Controller.h"
|
|
#include "LiveWindow/LiveWindow.h"
|
|
#include "HAL/Semaphore.hpp"
|
|
|
|
class PIDInterface : public Controller {
|
|
virtual void SetPID(double p, double i, double d) = 0;
|
|
virtual double GetP() const = 0;
|
|
virtual double GetI() const = 0;
|
|
virtual double GetD() const = 0;
|
|
|
|
virtual void SetSetpoint(float setpoint) = 0;
|
|
virtual double GetSetpoint() const = 0;
|
|
|
|
virtual void Enable() = 0;
|
|
virtual void Disable() = 0;
|
|
virtual bool IsEnabled() const = 0;
|
|
|
|
virtual void Reset() = 0;
|
|
};
|