PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <vehicle_status.h>
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] |
Definition at line 94 of file vehicle_status.h.
uint8_t vehicle_status_s::_padding0[7] |
Definition at line 122 of file vehicle_status.h.
uint8_t vehicle_status_s::arming_state |
Definition at line 102 of file vehicle_status.h.
Referenced by arming_state_transition(), StateMachineHelperTest::armingStateTransitionTest(), Commander::Commander(), control_status_leds(), enable_failsafe(), Commander::estimator_check(), get_mavlink_mode_state(), get_mavlink_navigation_mode(), Commander::handle_command(), MissionBlock::mission_item_to_position_setpoint(), Mission::need_to_reset_mission(), Loiter::on_active(), print_status(), events::rc_loss::RC_Loss_Alarm::process(), Loiter::reposition(), AirspeedModule::Run(), Commander::run(), Ekf2::Run(), MavlinkStreamUTMGlobalPosition::send(), MavlinkStreamHILActuatorControls::send(), MavlinkStreamCameraCapture::send(), Loiter::set_loiter_position(), set_nav_state(), px4::logger::Logger::start_stop_logging(), and MavlinkStreamHighLatency2::update_vehicle_status().
uint8_t vehicle_status_s::component_id |
Definition at line 107 of file vehicle_status.h.
Referenced by Commander::handle_command(), Navigator::publish_vehicle_cmd(), Commander::run(), and send_vehicle_command().
bool vehicle_status_s::data_link_lost |
Definition at line 116 of file vehicle_status.h.
Referenced by Commander::Commander(), Commander::data_link_check(), and set_nav_state().
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().
bool vehicle_status_s::engine_failure |
Definition at line 119 of file vehicle_status.h.
Referenced by Commander::run(), FixedwingAttitudeControl::Run(), set_nav_state(), FixedwingPositionControl::tecs_update_pitch_throttle(), and MavlinkStreamHighLatency2::write_vehicle_status().
bool vehicle_status_s::failsafe |
Definition at line 104 of file vehicle_status.h.
Referenced by control_status_leds(), enable_failsafe(), Commander::run(), and set_nav_state().
uint8_t vehicle_status_s::failure_detector_status |
Definition at line 121 of file vehicle_status.h.
Referenced by PreFlightCheck::failureDetectorCheck(), and Commander::run().
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().
uint8_t vehicle_status_s::hil_state |
Definition at line 103 of file vehicle_status.h.
Referenced by arming_state_transition(), StateMachineHelperTest::armingStateTransitionTest(), Commander::enable_hil(), get_mavlink_navigation_mode(), Commander::handle_command(), PreFlightCheck::preflightCheck(), Commander::run(), and Mavlink::task_main().
bool vehicle_status_s::in_transition_mode |
Definition at line 112 of file vehicle_status.h.
Referenced by FixedwingPositionControl::control_position(), FixedwingAttitudeControl::get_airspeed_and_update_scaling(), MissionBlock::is_mission_item_reached(), Land::on_active(), Commander::run(), FixedwingAttitudeControl::Run(), FixedwingPositionControl::Run(), MavlinkStreamExtendedSysState::send(), MulticopterPositionControl::start_flight_task(), FixedwingPositionControl::tecs_update_pitch_throttle(), Commander::update_control_mode(), FixedwingPositionControl::update_desired_altitude(), FixedwingAttitudeControl::vehicle_control_mode_poll(), and FixedwingAttitudeControl::vehicle_manual_poll().
bool vehicle_status_s::in_transition_to_fw |
Definition at line 113 of file vehicle_status.h.
Referenced by Navigator::force_vtol(), Commander::run(), and MavlinkStreamExtendedSysState::send().
bool vehicle_status_s::is_vtol |
Definition at line 109 of file vehicle_status.h.
Referenced by RTL::advance_rtl(), MissionFeasibilityChecker::checkMissionFeasible(), Navigator::force_vtol(), FixedwingAttitudeControl::get_airspeed_and_update_scaling(), FixedwingPositionControl::in_takeoff_situation(), Mission::index_closest_mission_item(), Land::on_active(), GpsFailure::on_active(), MulticopterPositionControl::poll_subscriptions(), PreFlightCheck::preflightCheck(), MulticopterRateControl::Run(), Commander::run(), FixedwingAttitudeControl::Run(), MavlinkStreamAttitudeQuaternion::send(), MavlinkStreamExtendedSysState::send(), Mission::set_execution_mode(), Commander::set_main_state_rc(), RTL::set_rtl_item(), FixedwingPositionControl::tecs_update_pitch_throttle(), Commander::update_control_mode(), FixedwingPositionControl::update_desired_altitude(), MavlinkStreamHighLatency2::update_vehicle_status(), FixedwingPositionControl::vehicle_attitude_poll(), FixedwingAttitudeControl::vehicle_control_mode_poll(), MulticopterRateControl::vehicle_status_poll(), FixedwingAttitudeControl::vehicle_status_poll(), and FixedwingPositionControl::vehicle_status_poll().
bool vehicle_status_s::is_vtol_tailsitter |
Definition at line 110 of file vehicle_status.h.
Referenced by Commander::run(), and MavlinkStreamAttitudeQuaternion::send().
bool vehicle_status_s::mission_failure |
Definition at line 120 of file vehicle_status.h.
Referenced by MicroBenchORB::MicroBenchORB::reset(), Commander::run(), set_nav_state(), and MavlinkStreamHighLatency2::write_vehicle_status().
uint8_t vehicle_status_s::nav_state |
Definition at line 101 of file vehicle_status.h.
Referenced by check_invalid_pos_nav_state(), Commander::Commander(), frsky_send_frame1(), get_mavlink_navigation_mode(), Commander::handle_command(), Navigator::in_rtl_state(), ObstacleAvoidance::injectAvoidanceSetpoints(), FailureDetector::isAttitudeStabilized(), Navigator::run(), MavlinkStreamUTMGlobalPosition::send(), CRSFTelemetry::send_flight_mode(), set_link_loss_nav_state(), set_nav_state(), set_offboard_loss_nav_state(), set_offboard_loss_rc_nav_state(), sPort_send_flight_mode(), sPort_send_NAV_STATE(), MulticopterPositionControl::start_flight_task(), TEST_F(), and Commander::update_control_mode().
uint64_t vehicle_status_s::nav_state_timestamp |
Definition at line 97 of file vehicle_status.h.
Referenced by Commander::Commander(), and Commander::run().
uint32_t vehicle_status_s::onboard_control_sensors_enabled |
Definition at line 99 of file vehicle_status.h.
Referenced by MavlinkStreamSysStatus::send(), set_health_flags(), set_health_flags_healthy(), set_health_flags_present_healthy(), and MavlinkStreamHighLatency2::write_vehicle_status().
uint32_t vehicle_status_s::onboard_control_sensors_health |
Definition at line 100 of file vehicle_status.h.
Referenced by MavlinkStreamSysStatus::send(), set_health_flags(), and MavlinkStreamHighLatency2::write_vehicle_status().
uint32_t vehicle_status_s::onboard_control_sensors_present |
Definition at line 98 of file vehicle_status.h.
Referenced by MavlinkStreamSysStatus::send(), set_health_flags(), and set_health_flags_healthy().
uint8_t vehicle_status_s::rc_input_mode |
Definition at line 115 of file vehicle_status.h.
Referenced by Commander::Commander(), PreFlightCheck::preflightCheck(), Commander::run(), and Mavlink::task_main().
bool vehicle_status_s::rc_signal_lost |
Definition at line 114 of file vehicle_status.h.
Referenced by Commander::Commander(), PreFlightCheck::preflightCheck(), events::rc_loss::RC_Loss_Alarm::process(), Commander::run(), set_nav_state(), and MavlinkStreamHighLatency2::write_vehicle_status().
uint8_t vehicle_status_s::system_id |
Definition at line 106 of file vehicle_status.h.
Referenced by Commander::handle_command(), Navigator::publish_vehicle_cmd(), Commander::run(), and send_vehicle_command().
uint8_t vehicle_status_s::system_type |
Definition at line 105 of file vehicle_status.h.
Referenced by is_fixed_wing(), is_ground_rover(), is_multirotor(), is_rotary_wing(), is_vtol(), is_vtol_tailsitter(), and Commander::run().
uint64_t vehicle_status_s::timestamp |
Definition at line 96 of file vehicle_status.h.
Referenced by land_detector::VtolLandDetector::_get_landed_state(), land_detector::VtolLandDetector::_get_maybe_landed_state(), MavlinkReceiver::handle_message_radio_status(), MicroBenchORB::MicroBenchORB::reset(), Commander::run(), and MavlinkStreamHILActuatorControls::send().
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().
bool vehicle_status_s::vtol_fw_permanent_stab |
Definition at line 111 of file vehicle_status.h.
Referenced by Commander::run(), and stabilization_required().