motor_controller
SimpleIntegrator.hpp
Go to the documentation of this file.
1 /*
2  * =====================================================================================
3  *
4  * Filename: SimpleIntegrator.h
5  *
6  * Description:
7  *
8  * Version: 1.0
9  * Created: 10/19/09 14:01:38
10  * Revision: none
11  * Compiler: gcc
12  *
13  * Author: Ajish Babu (), ajish.babu@dfki.de
14  * Company: DFKI
15  *
16  * =====================================================================================
17  */
18 
19 # include "RK4Integrator.hpp"
20 
21 #ifndef MOTOR_CONTROLLER_SIMPLEINTEGRATOR_H__INC
22 #define MOTOR_CONTROLLER_SIMPLEINTEGRATOR_H__INC
23 
24 namespace motor_controller
25 {
26 
27 /*
28  * =====================================================================================
29  * Class: SimpleIntegrator
30  * Description:
31  * =====================================================================================
32  */
33 class SimpleIntegrator : public RK4_SIM
34 {
35  public:
37  SimpleIntegrator (double _sample_time, double _initial_time = 0.0, double _init_val = 0.0); /* constructor */
38 
40 
41  void init(double _sample_time, double _initial_time = 0.0, double _init_val = 0.0);
42 
43  // Overload DERIV function of RK4_SIM for the integrator
44  void DERIV(const double t, const double *x,
45  const double *u, double *xdot);
46 
47  double update(double derivVal);
48  protected:
49 
50  private:
51 };
52 
53 }
54 #endif
Definition: InputShaper.hpp:22
double update(double derivVal)
Definition: SimpleIntegrator.cpp:42
SimpleIntegrator()
Definition: SimpleIntegrator.cpp:22
Definition: SimpleIntegrator.hpp:33
Definition: RK4Integrator.hpp:19
void DERIV(const double t, const double *x, const double *u, double *xdot)
Definition: SimpleIntegrator.cpp:35
~SimpleIntegrator()
Definition: SimpleIntegrator.hpp:39
void init(double _sample_time, double _initial_time=0.0, double _init_val=0.0)
Definition: SimpleIntegrator.cpp:30