MAV'RIC
Public Member Functions | Static Public Member Functions | Public Attributes
State_machine Class Reference

Defines the state machine structure. More...

#include <state_machine.hpp>

Collaboration diagram for State_machine:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 State_machine (State &state, const INS &ins, const Imu &imu, const AHRS &ahrs, Manual_control &manual_control, Geofence &safety_geofence, Geofence &emergency_geofence, State_display &state_display)
 Constructor.
bool update (void)
 Updates the state machine.
bool set_ctrl_mode (Mav_mode mode)

Static Public Member Functions

static bool update_task (State_machine *state_machine)

Public Attributes

State & state_
 State structure.
const INS & ins_
 Inertial Navigation System.
const Imu & imu_
 Inertial measurement unit.
const AHRS & ahrs_
 Attitude estimation.
Manual_control & manual_control_
 Manual_control.
Geofence & safety_geofence_
 Geofence the MAV should not cross.
Geofence & emergency_geofence_
 Geofence outside which emergency landing is performed.
State_display & state_display_
 Reference to the state display.

Detailed Description

Defines the state machine structure.


Constructor & Destructor Documentation

State_machine::State_machine ( State &  state,
const INS &  ins,
const Imu &  imu,
const AHRS &  ahrs,
Manual_control &  manual_control,
Geofence &  safety_geofence,
Geofence &  emergency_geofence,
State_display &  state_display 
)

Constructor.

Parameters:
stateReference to the state
insReference to the ins
imuReference to the imu
ahrsReference to the ahrs
manual_controlReference to the manual_control
safety_geofenceReference to the geofence the MAV should not cross
emergency_geofenceReference to the geofence outside which emergency landing is performed
state_displayReference to the state display

Member Function Documentation

bool State_machine::update ( void  )

Updates the state machine.

Parameters:
state_machinePointer to the state machine structure
Returns:
Returns the result of the task

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