PID_Controller.h
Go to the documentation of this file.
1 /*+-------------------------------------------------------------------------+
2  | MultiVehicle simulator (libmvsim) |
3  | |
4  | Copyright (C) 2014 Jose Luis Blanco Claraco (University of Almeria) |
5  | Copyright (C) 2017 Borys Tymchenko (Odessa Polytechnic University) |
6  | Distributed under GNU General Public License version 3 |
7  | See <http://www.gnu.org/licenses/> |
8  +-------------------------------------------------------------------------+ */
9 #pragma once
10 
11 namespace mvsim
12 {
14 {
16 
17  double KP, KI, KD;
18  double max_out;
19 
21  double compute(double err, double dt);
22 
23  private:
24  double lastOutput;
25  double e_n, e_n_1, e_n_2;
26 };
27 }
double max_out
For clamping (0=no clamp)
double compute(double err, double dt)


mvsim
Author(s):
autogenerated on Thu Jun 6 2019 19:36:40