PIDController.h
Go to the documentation of this file.
1 //
2 // Created by reza on 04-01-21.
3 //
4 
5 #ifndef MERCURYDPM_PIDCONTROLLER_H
6 #define MERCURYDPM_PIDCONTROLLER_H
7 #include "Math/ExtendedMath.h"
8 
9 class PIDController {
14  bool filterFlag=true;
17 
18 public:
19 // Constructor
22  {}
23  Mdouble apply (Mdouble stressError, Mdouble timeStep);
24 };
25 
26 
27 #endif //MERCURYDPM_PIDCONTROLLER_H
double Mdouble
Definition: GeneralDefine.h:34
Definition: PIDController.h:9
Mdouble apply(Mdouble stressError, Mdouble timeStep)
Definition: PIDController.cc:5
Mdouble dGain
Definition: PIDController.h:12
PIDController(Mdouble pGain, Mdouble iGain, Mdouble dGain)
Definition: PIDController.h:20
Mdouble iController
Definition: PIDController.h:13
bool filterFlag
Definition: PIDController.h:14
Mdouble pGain
Definition: PIDController.h:10
Mdouble previousError
Definition: PIDController.h:15
Mdouble iGain
Definition: PIDController.h:11
Mdouble filterError
Definition: PIDController.h:16