Auterion App SDK
Auterion SDK is a library that can be used by AuterionOS apps to communicate with the system.
auterion::ModeConfiguration Class Reference

Configuration flags for specifying mode requirements and capabilities. More...

#include <auterion_sdk/control/mode.hpp>

Classes

struct  PX4Mode
 Struct storing PX4 mode IDs. More...
 

Public Member Functions

ModeConfiguration merge (const ModeConfiguration &other) const
 
ModeConfigurationreplacesPX4Mode (PX4Mode::ID px4_mode_id)
 Configures a Mode to replace an existing PX4 mode. More...
 
ModeConfigurationneedsAngularVelocity (bool needs=true)
 
ModeConfigurationneedsAttitude (bool needs=true)
 
ModeConfigurationneedsLocalAltitude (bool needs=true)
 
ModeConfigurationneedsLocalPosition (bool needs=true)
 
ModeConfigurationneedsLocalPositionRelaxed (bool needs=true)
 
ModeConfigurationneedsGlobalPosition (bool needs=true)
 
ModeConfigurationneedsValidMission (bool needs=true)
 
ModeConfigurationneedsValidHome (bool needs=true)
 
ModeConfigurationneedsManualControlInput (bool needs=true)
 
ModeConfigurationcanPreventArming (bool can=true)
 

Public Attributes

PX4Mode::ID replace_px4_mode
 
bool needs_angular_velocity {false}
 
bool needs_attitude {false}
 
bool needs_local_altitude {false}
 
bool needs_local_position {false}
 
bool needs_local_position_relaxed {false}
 
bool needs_global_position {false}
 
bool needs_valid_mission {false}
 
bool needs_valid_home {false}
 
bool needs_manual_control_input {false}
 
bool can_prevent_arming {false}
 

Detailed Description

Configuration flags for specifying mode requirements and capabilities.

Member Function Documentation

◆ replacesPX4Mode()

ModeConfiguration& auterion::ModeConfiguration::replacesPX4Mode ( PX4Mode::ID  px4_mode_id)
inline

Configures a Mode to replace an existing PX4 mode.

Parameters
px4_mode_idThe ID of the PX4 mode that the custom Mode will replace.
Returns
A reference to the current ModeConfiguration object.

Member Data Documentation

◆ replace_px4_mode

PX4Mode::ID auterion::ModeConfiguration::replace_px4_mode
Initial value:
{
static const ID kModeIDInvalid
Invalid mode, will not replace any PX4 mode.
Definition: mode.hpp:57

If set to a valid PX4 mode, replaces flight controller's existing mode


The documentation for this class was generated from the following file: