Main Page
Namespaces
Classes
Files
File List
File Members
libmvsim
include
mvsim
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
{
13
struct
PID_Controller
14
{
15
PID_Controller
();
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
}
mvsim
Definition:
basic_types.h:47
mvsim::PID_Controller::PID_Controller
PID_Controller()
Definition:
PID_Controller.cpp:14
mvsim::PID_Controller::KD
double KD
Definition:
PID_Controller.h:17
mvsim::PID_Controller::KP
double KP
Definition:
PID_Controller.h:17
mvsim::PID_Controller::e_n
double e_n
Definition:
PID_Controller.h:25
mvsim::PID_Controller::lastOutput
double lastOutput
Definition:
PID_Controller.h:24
mvsim::PID_Controller
Definition:
PID_Controller.h:13
mvsim::PID_Controller::max_out
double max_out
For clamping (0=no clamp)
Definition:
PID_Controller.h:18
mvsim::PID_Controller::compute
double compute(double err, double dt)
Definition:
PID_Controller.cpp:27
mvsim::PID_Controller::e_n_1
double e_n_1
Definition:
PID_Controller.h:25
mvsim::PID_Controller::e_n_2
double e_n_2
Definition:
PID_Controller.h:25
mvsim::PID_Controller::KI
double KI
Definition:
PID_Controller.h:17
mvsim
Author(s):
autogenerated on Thu Jun 6 2019 19:36:40