PIDController.h
Go to the documentation of this file.
1 // This file is part of the MercuryDPM project (https://www.mercurydpm.org).
2 // Copyright (c), The MercuryDPM Developers Team. All rights reserved.
3 // License: BSD 3-Clause License; see the LICENSE file in the root directory.
4 
5 //
6 // Created by reza on 04-01-21.
7 //
8 
9 #ifndef MERCURYDPM_PIDCONTROLLER_H
10 #define MERCURYDPM_PIDCONTROLLER_H
11 #include "Math/ExtendedMath.h"
12 
18  bool filterFlag=true;
21 
22 public:
23 // Constructor
26  {}
27  Mdouble apply (Mdouble stressError, Mdouble timeStep);
28 };
29 
30 
31 #endif //MERCURYDPM_PIDCONTROLLER_H
double Mdouble
Definition: GeneralDefine.h:13
Definition: PIDController.h:13
Mdouble apply(Mdouble stressError, Mdouble timeStep)
Definition: PIDController.cc:9
Mdouble dGain
Definition: PIDController.h:16
PIDController(Mdouble pGain, Mdouble iGain, Mdouble dGain)
Definition: PIDController.h:24
Mdouble iController
Definition: PIDController.h:17
bool filterFlag
Definition: PIDController.h:18
Mdouble pGain
Definition: PIDController.h:14
Mdouble previousError
Definition: PIDController.h:19
Mdouble iGain
Definition: PIDController.h:15
Mdouble filterError
Definition: PIDController.h:20