![]() |
WarpTwin
Documentation for WarpTwin models and classes.
|
#include <Integrator.hpp>

Public Member Functions | |
| Integrator (Rates< N > &rate_calculator) | |
| Constructor for the integrator. | |
| virtual int16 | step (floating_point start_time, floating_point end_time, const std::array< floating_point, N > &start_state, std::array< floating_point, N > &out_state) |
Protected Attributes | |
| Rates< N > & | _rate_calculator |
| Reference to dynamics object that calculates rates. | |
This class is a base implementation of the integrator. It defines the basic functions and components of an integrator.
It cannot function on its own. A derived class for RK4, forward Euler, etc. must be implemented to use the integrator.
| warpos::Integrator< N >::Integrator | ( | Rates< N > & | rate_calculator | ) |
Constructor for the integrator.
|
inlinevirtual |
Function to step the integrator forward from time start to time end
| start_time | Start time for integration |
| end_time | End time for integration |
| start_state | State at start of integration |
| out_state | Output state via implicit – result of integration |
Reimplemented in warpos::ForwardEulerIntegrator< N >, warpos::ForwardEulerIntegrator< INERTIAL_NAVIGATION_STATE_VECTOR_ELEMENTS+INERTIAL_NAVIGATION_STATE_VECTOR_ELEMENTS *INERTIAL_NAVIGATION_STATE_VECTOR_ELEMENTS >, warpos::ForwardEulerIntegrator< NUM_INTEGRATED_STATES >, warpos::RK4Integrator< N >, and warpos::RK4Integrator< NUM_INTEGRATED_STATES >.
|
protected |
Reference to dynamics object that calculates rates.