MAV'RIC
Public Member Functions
Dynamic_model Class Reference

Abstract class for simulation's dynamic model. More...

#include <dynamic_model.hpp>

Inheritance diagram for Dynamic_model:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual bool update (void)=0
 Main update function Reads new values from sensor.
virtual const float & last_update_us (void) const =0
 Get last update time in microseconds.
virtual const std::array
< float, 3 > & 
acceleration_bf (void) const =0
 Get X, Y and Z components of acceleration in body frame in m/s^2.
virtual const std::array
< float, 3 > & 
velocity_lf (void) const =0
 Get X, Y and Z components of velocity in local frame.
virtual const std::array
< float, 3 > & 
position_lf (void) const =0
 Get X, Y and Z position in local frame (centered on home)
virtual const global_position_tposition_gf (void) const =0
 Get X, Y and Z position in global frame.
virtual const std::array
< float, 3 > & 
angular_velocity_bf (void) const =0
 Get X, Y and Z components of angular velocity in body frame.
virtual const quat_tattitude (void) const =0
 Get attitude quaternion.

Detailed Description

Abstract class for simulation's dynamic model.


Member Function Documentation

virtual const std::array<float, 3>& Dynamic_model::acceleration_bf ( void  ) const [pure virtual]

Get X, Y and Z components of acceleration in body frame in m/s^2.

Returns:
Value

Implemented in Dynamic_model_quad_diag.

Here is the caller graph for this function:

virtual const std::array<float, 3>& Dynamic_model::angular_velocity_bf ( void  ) const [pure virtual]

Get X, Y and Z components of angular velocity in body frame.

Returns:
Value

Implemented in Dynamic_model_quad_diag.

Here is the caller graph for this function:

virtual const quat_t& Dynamic_model::attitude ( void  ) const [pure virtual]

Get attitude quaternion.

Returns:
Value

Implemented in Dynamic_model_quad_diag.

Here is the caller graph for this function:

virtual const float& Dynamic_model::last_update_us ( void  ) const [pure virtual]

Get last update time in microseconds.

Returns:
Update time

Implemented in Dynamic_model_quad_diag.

Here is the caller graph for this function:

virtual const global_position_t& Dynamic_model::position_gf ( void  ) const [pure virtual]

Get X, Y and Z position in global frame.

Returns:
Value

Implemented in Dynamic_model_quad_diag.

Here is the caller graph for this function:

virtual const std::array<float, 3>& Dynamic_model::position_lf ( void  ) const [pure virtual]

Get X, Y and Z position in local frame (centered on home)

Returns:
Value

Implemented in Dynamic_model_quad_diag.

Here is the caller graph for this function:

virtual bool Dynamic_model::update ( void  ) [pure virtual]

Main update function Reads new values from sensor.

Returns:
Success

Implemented in Dynamic_model_quad_diag.

Here is the caller graph for this function:

virtual const std::array<float, 3>& Dynamic_model::velocity_lf ( void  ) const [pure virtual]

Get X, Y and Z components of velocity in local frame.

Returns:
Value

Implemented in Dynamic_model_quad_diag.

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines