51 #include "mav_modes.h"
52 #include "analog_monitor.h"
63 } critical_behavior_enum;
70 DESCENT_TO_SMALL_ALTITUDE,
72 } auto_landing_behavior_t;
74 typedef enum MAV_MODE_FLAG mav_flag_t;
123 void state_switch_to_active_mode(
state_t* state,mav_state_t* mav_state);
uint8_t autopilot_name
The name of the autopilot (MAV_AUTOPILOT enum in common.h)
Definition: state.h:89
uint8_t autopilot_type
The type of the autopilot (MAV_TYPE enum in common.h)
Definition: state.h:88
uint16_t sensor_present
The type of sensors that are present on the autopilot (Value of 0: not present. Value of 1: present...
Definition: state.h:91
bool nav_plan_active
Flag to tell that a flight plan (min 1 waypoint) is active.
Definition: state.h:95
mav_mode_custom_t mav_mode_custom
The value of the custom_mode.
Definition: state.h:84
mav_state_t mav_state
The value of the MAV state.
Definition: state.h:82
bool reset_position
Flag to enable the reset of the position estimation.
Definition: state.h:97
Analog monitor structure.
Definition: analog_monitor.h:90
The state structure.
Definition: state.h:79
uint32_t remote_active
Flag to tell whether the remote is active or not.
Definition: state.h:99
mav_mode_t mav_mode
The value of the MAV mode.
Definition: state.h:81
bool in_the_air
Flag to tell whether the vehicle is airborne or not.
Definition: state.h:96
uint16_t sensor_health
The health of sensors present on the autopilot (Value of 0: not enabled. Value of 1: enabled...
Definition: state.h:93
Definition: mav_modes.h:147
int32_t simulation_mode
The value of the simulation_mode (0: real, 1: simulation)
Definition: state.h:86
uint16_t sensor_enabled
The sensors enabled on the autopilot (Value of 0: not enabled. Value of 1: enabled. Indices: 0: 3D gyro, 1: 3D acc, 2: 3D mag, 3: absolute pressure, 4: differential pressure, 5: GPS, 6: optical flow, 7: computer vision position, 8: laser based position, 9: external ground-truth (Vicon or Leica). Controllers: 10: 3D angular rate control 11: attitude stabilization, 12: yaw position, 13: z/altitude control, 14: x/y position control, 15: motor outputs / control)
Definition: state.h:92
uint32_t use_mode_from_remote
Flag to tell whether the modes are coming from the remote or not.
Definition: state.h:100
const analog_monitor_t * analog_monitor
The pointer to the analog monitor structure.
Definition: state.h:102