MAV'RIC
Classes | Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Protected Attributes
Ahrs_ekf_mocap Class Reference

The AHRS EKF class. More...

#include <ahrs_ekf_mocap.hpp>

Collaboration diagram for Ahrs_ekf_mocap:
Collaboration graph
[legend]

List of all members.

Classes

struct  conf_t
 The AHRS EKF MOCAP config structure. More...

Public Member Functions

 Ahrs_ekf_mocap (Mavlink_message_handler &message_handler, AHRS_ekf &ahrs_ekf, const conf_t config_=Ahrs_ekf_mocap::default_config())
 AHRS EKF MOCAP telemetry.
bool init ()
 Initializes the mocap telemetry message and callback.

Static Public Member Functions

static conf_t default_config ()
 Default configuration structure.

Static Protected Member Functions

static void callback (Ahrs_ekf_mocap *ahrs_ekf_mocap, uint32_t sysid, const mavlink_message_t *msg)
 Method used to update internal state when a message is received.

Protected Attributes

AHRS_ekfahrs_ekf_
 AHRS extended callman filter.
Mavlink_message_handlermessage_handler_
 State covariance.
Mat< 4, 4 > R_mocap_
 The mocap measurement noise matrix.
Mat< 4, 7 > H_
 The measurement matrix.
Mat< 4, 1 > z_
 The measurement vector.
bool is_init_
 Boolean flag stating if this module has been initialized.
conf_t config_
 The config structure for the EKF mocap module.
float last_update_us_
 The last time the mocap was updated.

Detailed Description

The AHRS EKF class.


Constructor & Destructor Documentation

Ahrs_ekf_mocap::Ahrs_ekf_mocap ( Mavlink_message_handler message_handler,
AHRS_ekf ahrs_ekf,
const conf_t  config_ = Ahrs_ekf_mocap::default_config() 
)

AHRS EKF MOCAP telemetry.

Parameters:
message_handlerThe Mavlink message handler
ahrs_ekfThe reference to the ahrs_ekf object
configConfiguration structure for the mocap

Member Function Documentation

void Ahrs_ekf_mocap::callback ( Ahrs_ekf_mocap ahrs_ekf_mocap,
uint32_t  sysid,
const mavlink_message_t *  msg 
) [static, protected]

Method used to update internal state when a message is received.

Parameters:
ahrs_ekf_mocapThe ahrs_ekf_mocap object
sysidID of the system
msgPointer to the incoming message

Here is the caller graph for this function:

bool Ahrs_ekf_mocap::init ( void  )

Initializes the mocap telemetry message and callback.

Returns:
Success

Here is the call graph for this function:


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