PX4 Firmware
PX4 Autopilot Software http://px4.io
vehicle_status_s Struct Reference

#include <vehicle_status.h>

Collaboration diagram for vehicle_status_s:

Public Attributes

uint64_t timestamp
 
uint64_t nav_state_timestamp
 
uint32_t onboard_control_sensors_present
 
uint32_t onboard_control_sensors_enabled
 
uint32_t onboard_control_sensors_health
 
uint8_t nav_state
 
uint8_t arming_state
 
uint8_t hil_state
 
bool failsafe
 
uint8_t system_type
 
uint8_t system_id
 
uint8_t component_id
 
uint8_t vehicle_type
 
bool is_vtol
 
bool is_vtol_tailsitter
 
bool vtol_fw_permanent_stab
 
bool in_transition_mode
 
bool in_transition_to_fw
 
bool rc_signal_lost
 
uint8_t rc_input_mode
 
bool data_link_lost
 
uint8_t data_link_lost_counter
 
bool high_latency_data_link_lost
 
bool engine_failure
 
bool mission_failure
 
uint8_t failure_detector_status
 
uint8_t _padding0 [7]
 

Detailed Description

Definition at line 94 of file vehicle_status.h.

Member Data Documentation

◆ _padding0

uint8_t vehicle_status_s::_padding0[7]

Definition at line 122 of file vehicle_status.h.

◆ arming_state

◆ component_id

uint8_t vehicle_status_s::component_id

◆ data_link_lost

bool vehicle_status_s::data_link_lost

◆ data_link_lost_counter

uint8_t vehicle_status_s::data_link_lost_counter

Definition at line 117 of file vehicle_status.h.

Referenced by DataLinkLoss::advance_dll(), and Commander::data_link_check().

◆ engine_failure

◆ failsafe

bool vehicle_status_s::failsafe

◆ failure_detector_status

uint8_t vehicle_status_s::failure_detector_status

Definition at line 121 of file vehicle_status.h.

Referenced by PreFlightCheck::failureDetectorCheck(), and Commander::run().

◆ high_latency_data_link_lost

bool vehicle_status_s::high_latency_data_link_lost

Definition at line 118 of file vehicle_status.h.

Referenced by Commander::data_link_check(), and Mavlink::task_main().

◆ hil_state

◆ in_transition_mode

◆ in_transition_to_fw

bool vehicle_status_s::in_transition_to_fw

◆ is_vtol

◆ is_vtol_tailsitter

bool vehicle_status_s::is_vtol_tailsitter

Definition at line 110 of file vehicle_status.h.

Referenced by Commander::run(), and MavlinkStreamAttitudeQuaternion::send().

◆ mission_failure

bool vehicle_status_s::mission_failure

◆ nav_state

◆ nav_state_timestamp

uint64_t vehicle_status_s::nav_state_timestamp

Definition at line 97 of file vehicle_status.h.

Referenced by Commander::Commander(), and Commander::run().

◆ onboard_control_sensors_enabled

uint32_t vehicle_status_s::onboard_control_sensors_enabled

◆ onboard_control_sensors_health

uint32_t vehicle_status_s::onboard_control_sensors_health

◆ onboard_control_sensors_present

uint32_t vehicle_status_s::onboard_control_sensors_present

◆ rc_input_mode

uint8_t vehicle_status_s::rc_input_mode

◆ rc_signal_lost

◆ system_id

uint8_t vehicle_status_s::system_id

◆ system_type

uint8_t vehicle_status_s::system_type

◆ timestamp

◆ vehicle_type

uint8_t vehicle_status_s::vehicle_type

Definition at line 108 of file vehicle_status.h.

Referenced by FlightTaskAuto::_evaluateTriplets(), land_detector::VtolLandDetector::_get_landed_state(), land_detector::VtolLandDetector::_get_maybe_landed_state(), RTL::advance_rtl(), Mission::altitude_sp_foh_update(), check_invalid_pos_nav_state(), MissionFeasibilityChecker::checkMissionFeasible(), commander_main(), FixedwingPositionControl::control_position(), Mission::do_need_move_to_land(), Mission::do_need_move_to_takeoff(), Mission::do_need_vertical_takeoff(), Commander::estimator_check(), Navigator::force_vtol(), FixedwingAttitudeControl::get_airspeed_and_update_scaling(), Navigator::get_cruising_speed(), get_mavlink_navigation_mode(), MissionBlock::get_time_inside(), Mission::index_closest_mission_item(), MissionBlock::is_mission_item_reached(), FailureDetector::isAttitudeStabilized(), main_state_transition(), StateMachineHelperTest::mainStateTransitionTest(), MulticopterRateControl::MulticopterRateControl(), Mission::on_active(), PreFlightCheck::preflightCheck(), MulticopterRateControl::Run(), Commander::run(), FixedwingAttitudeControl::Run(), Ekf2::Run(), FixedwingPositionControl::Run(), Ekf2::runPreFlightChecks(), MavlinkStreamAttitudeQuaternion::send(), MavlinkStreamExtendedSysState::send(), Navigator::set_cruising_speed(), Mission::set_execution_mode(), set_link_loss_nav_state(), Commander::set_main_state_rc(), Mission::set_mission_items(), set_nav_state(), set_offboard_loss_nav_state(), set_offboard_loss_rc_nav_state(), stabilization_required(), MulticopterPositionControl::start_flight_task(), FixedwingPositionControl::tecs_update_pitch_throttle(), Commander::update_control_mode(), FixedwingPositionControl::update_desired_altitude(), MavlinkStreamHighLatency2::update_vehicle_status(), FixedwingAttitudeControl::vehicle_control_mode_poll(), and FixedwingAttitudeControl::vehicle_manual_poll().

◆ vtol_fw_permanent_stab

bool vehicle_status_s::vtol_fw_permanent_stab

Definition at line 111 of file vehicle_status.h.

Referenced by Commander::run(), and stabilization_required().


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