PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <vehicle_local_position.h>
Public Attributes | |
uint64_t | timestamp |
uint64_t | ref_timestamp |
double | ref_lat |
double | ref_lon |
float | x |
float | y |
float | z |
float | delta_xy [2] |
float | delta_z |
float | vx |
float | vy |
float | vz |
float | z_deriv |
float | delta_vxy [2] |
float | delta_vz |
float | ax |
float | ay |
float | az |
float | yaw |
float | ref_alt |
float | dist_bottom |
float | dist_bottom_rate |
float | eph |
float | epv |
float | evh |
float | evv |
float | vxy_max |
float | vz_max |
float | hagl_min |
float | hagl_max |
bool | xy_valid |
bool | z_valid |
bool | v_xy_valid |
bool | v_z_valid |
uint8_t | xy_reset_counter |
uint8_t | z_reset_counter |
uint8_t | vxy_reset_counter |
uint8_t | vz_reset_counter |
bool | xy_global |
bool | z_global |
bool | dist_bottom_valid |
uint8_t | _padding0 [5] |
Definition at line 51 of file vehicle_local_position.h.
uint8_t vehicle_local_position_s::_padding0[5] |
Definition at line 94 of file vehicle_local_position.h.
float vehicle_local_position_s::ax |
Definition at line 68 of file vehicle_local_position.h.
Referenced by BlockLocalPositionEstimator::publishLocalPos(), and Ekf2::Run().
float vehicle_local_position_s::ay |
Definition at line 69 of file vehicle_local_position.h.
Referenced by BlockLocalPositionEstimator::publishLocalPos(), and Ekf2::Run().
float vehicle_local_position_s::az |
Definition at line 70 of file vehicle_local_position.h.
Referenced by BlockLocalPositionEstimator::publishLocalPos(), Ekf2::Run(), and FixedwingPositionControl::tecs_update_pitch_throttle().
float vehicle_local_position_s::delta_vxy[2] |
Definition at line 66 of file vehicle_local_position.h.
Referenced by Ekf2::Run().
float vehicle_local_position_s::delta_vz |
Definition at line 67 of file vehicle_local_position.h.
Referenced by Ekf2::Run().
float vehicle_local_position_s::delta_xy[2] |
Definition at line 60 of file vehicle_local_position.h.
Referenced by Ekf2::Run().
float vehicle_local_position_s::delta_z |
Definition at line 61 of file vehicle_local_position.h.
Referenced by Ekf2::Run().
float vehicle_local_position_s::dist_bottom |
Definition at line 73 of file vehicle_local_position.h.
Referenced by FlightTask::_evaluateVehicleLocalPosition(), BlockLocalPositionEstimator::publishLocalPos(), Ekf2::Run(), MavlinkStreamUTMGlobalPosition::send(), MavlinkStreamAltitude::send(), and landing_target_estimator::LandingTargetEstimator::update().
float vehicle_local_position_s::dist_bottom_rate |
Definition at line 74 of file vehicle_local_position.h.
Referenced by BlockLocalPositionEstimator::publishLocalPos(), Ekf2::Run(), and MulticopterPositionControl::set_vehicle_states().
bool vehicle_local_position_s::dist_bottom_valid |
Definition at line 93 of file vehicle_local_position.h.
Referenced by FlightTask::_evaluateVehicleLocalPosition(), BlockLocalPositionEstimator::publishLocalPos(), Ekf2::Run(), MavlinkStreamUTMGlobalPosition::send(), MavlinkStreamAltitude::send(), MulticopterPositionControl::set_vehicle_states(), and landing_target_estimator::LandingTargetEstimator::update().
float vehicle_local_position_s::eph |
Definition at line 75 of file vehicle_local_position.h.
Referenced by Commander::estimator_check(), BlockLocalPositionEstimator::publishLocalPos(), Commander::reset_posvel_validity(), Commander::run(), and Ekf2::Run().
float vehicle_local_position_s::epv |
Definition at line 76 of file vehicle_local_position.h.
Referenced by BlockLocalPositionEstimator::publishLocalPos(), Commander::run(), and Ekf2::Run().
float vehicle_local_position_s::evh |
Definition at line 77 of file vehicle_local_position.h.
Referenced by Commander::estimator_check(), BlockLocalPositionEstimator::publishLocalPos(), Commander::reset_posvel_validity(), AirspeedModule::Run(), Ekf2::Run(), and MavlinkStreamUTMGlobalPosition::send().
float vehicle_local_position_s::evv |
Definition at line 78 of file vehicle_local_position.h.
Referenced by BlockLocalPositionEstimator::publishLocalPos(), AirspeedModule::Run(), Ekf2::Run(), and MavlinkStreamUTMGlobalPosition::send().
float vehicle_local_position_s::hagl_max |
Definition at line 82 of file vehicle_local_position.h.
Referenced by Simulator::handle_message_hil_state_quaternion(), BlockLocalPositionEstimator::publishLocalPos(), and Ekf2::Run().
float vehicle_local_position_s::hagl_min |
Definition at line 81 of file vehicle_local_position.h.
Referenced by FlightTask::_checkTakeoff(), Simulator::handle_message_hil_state_quaternion(), BlockLocalPositionEstimator::publishLocalPos(), and Ekf2::Run().
float vehicle_local_position_s::ref_alt |
Definition at line 72 of file vehicle_local_position.h.
Referenced by FlightTaskAuto::_evaluateGlobalReference(), FlightTask::_evaluateVehicleLocalPosition(), Commander::handle_command(), Simulator::handle_message_hil_state_quaternion(), BlockLocalPositionEstimator::publishLocalPos(), RoverPositionControl::run(), Ekf2::Run(), FixedwingPositionControl::Run(), MavlinkStreamVFRHUD::send(), MavlinkStreamGlobalPositionInt::send(), MavlinkStreamAltitude::send(), MavlinkStreamWind::send(), Commander::set_home_position_alt_only(), and PrecLand::switch_to_state_search().
double vehicle_local_position_s::ref_lat |
Definition at line 55 of file vehicle_local_position.h.
Referenced by FlightTaskAuto::_evaluateGlobalReference(), FlightTask::_evaluateVehicleLocalPosition(), Commander::handle_command(), Simulator::handle_message_hil_state_quaternion(), PrecLand::on_activation(), BlockLocalPositionEstimator::publishLocalPos(), RoverPositionControl::run(), Ekf2::Run(), and FixedwingPositionControl::Run().
double vehicle_local_position_s::ref_lon |
Definition at line 56 of file vehicle_local_position.h.
Referenced by FlightTaskAuto::_evaluateGlobalReference(), FlightTask::_evaluateVehicleLocalPosition(), Commander::handle_command(), Simulator::handle_message_hil_state_quaternion(), PrecLand::on_activation(), BlockLocalPositionEstimator::publishLocalPos(), RoverPositionControl::run(), Ekf2::Run(), and FixedwingPositionControl::Run().
uint64_t vehicle_local_position_s::ref_timestamp |
Definition at line 54 of file vehicle_local_position.h.
Referenced by FlightTaskAuto::_evaluateGlobalReference(), FlightTask::_evaluateVehicleLocalPosition(), Simulator::handle_message_hil_state_quaternion(), BlockLocalPositionEstimator::publishLocalPos(), RoverPositionControl::run(), Ekf2::Run(), and FixedwingPositionControl::Run().
uint64_t vehicle_local_position_s::timestamp |
Definition at line 53 of file vehicle_local_position.h.
Referenced by FlightTask::_evaluateVehicleLocalPosition(), land_detector::FixedwingLandDetector::_get_landed_state(), land_detector::MulticopterLandDetector::_has_altitude_lock(), Commander::estimator_check(), MavlinkReceiver::handle_message_hil_state_quaternion(), Simulator::handle_message_hil_state_quaternion(), AirspeedModule::poll_topics(), BlockLocalPositionEstimator::publishLocalPos(), Commander::reset_posvel_validity(), Ekf2::Run(), MavlinkStreamLocalPositionNED::send(), and MulticopterPositionControl::set_vehicle_states().
bool vehicle_local_position_s::v_xy_valid |
Definition at line 85 of file vehicle_local_position.h.
Referenced by FlightTask::_evaluateVehicleLocalPosition(), Commander::estimator_check(), Simulator::handle_message_hil_state_quaternion(), AirspeedModule::poll_topics(), BlockLocalPositionEstimator::publishLocalPos(), Commander::reset_posvel_validity(), Ekf2::Run(), MavlinkStreamUTMGlobalPosition::send(), MulticopterPositionControl::set_vehicle_states(), landing_target_estimator::LandingTargetEstimator::update(), and Standard::update_vtol_state().
bool vehicle_local_position_s::v_z_valid |
Definition at line 86 of file vehicle_local_position.h.
Referenced by FlightTask::_evaluateVehicleLocalPosition(), VtolType::check_quadchute_condition(), Simulator::handle_message_hil_state_quaternion(), MulticopterPositionControl::limit_altitude(), BlockLocalPositionEstimator::publishLocalPos(), Ekf2::Run(), MavlinkStreamVFRHUD::send(), MavlinkStreamUTMGlobalPosition::send(), and FixedwingPositionControl::tecs_update_pitch_throttle().
float vehicle_local_position_s::vx |
Definition at line 62 of file vehicle_local_position.h.
Referenced by FlightTask::_evaluateVehicleLocalPosition(), land_detector::MulticopterLandDetector::_get_ground_contact_state(), land_detector::FixedwingLandDetector::_get_landed_state(), Commander::estimator_check(), Simulator::handle_message_hil_state_quaternion(), MissionBlock::is_mission_item_reached(), BlockLocalPositionEstimator::publishLocalPos(), AirspeedModule::Run(), RoverPositionControl::run(), Ekf2::Run(), MavlinkStreamVFRHUD::send(), MavlinkStreamUTMGlobalPosition::send(), MavlinkStreamGlobalPositionInt::send(), MavlinkStreamLocalPositionNED::send(), MulticopterPositionControl::set_vehicle_states(), PrecLand::slewrate(), landing_target_estimator::LandingTargetEstimator::update(), AirspeedModule::update_ground_minus_wind_airspeed(), Standard::update_vtol_state(), and AirspeedModule::update_wind_estimator_sideslip().
float vehicle_local_position_s::vxy_max |
Definition at line 79 of file vehicle_local_position.h.
Referenced by FlightTaskManualPosition::_scaleSticks(), Simulator::handle_message_hil_state_quaternion(), BlockLocalPositionEstimator::publishLocalPos(), and Ekf2::Run().
uint8_t vehicle_local_position_s::vxy_reset_counter |
Definition at line 89 of file vehicle_local_position.h.
Referenced by FlightTask::_checkEkfResetCounters(), FlightTask::_initEkfResetCounters(), and Ekf2::Run().
float vehicle_local_position_s::vy |
Definition at line 63 of file vehicle_local_position.h.
Referenced by FlightTask::_evaluateVehicleLocalPosition(), land_detector::MulticopterLandDetector::_get_ground_contact_state(), land_detector::FixedwingLandDetector::_get_landed_state(), Commander::estimator_check(), Simulator::handle_message_hil_state_quaternion(), MissionBlock::is_mission_item_reached(), BlockLocalPositionEstimator::publishLocalPos(), AirspeedModule::Run(), RoverPositionControl::run(), Ekf2::Run(), MavlinkStreamVFRHUD::send(), MavlinkStreamUTMGlobalPosition::send(), MavlinkStreamGlobalPositionInt::send(), MavlinkStreamLocalPositionNED::send(), MulticopterPositionControl::set_vehicle_states(), PrecLand::slewrate(), landing_target_estimator::LandingTargetEstimator::update(), AirspeedModule::update_ground_minus_wind_airspeed(), Standard::update_vtol_state(), and AirspeedModule::update_wind_estimator_sideslip().
float vehicle_local_position_s::vz |
Definition at line 64 of file vehicle_local_position.h.
Referenced by FlightTask::_evaluateVehicleLocalPosition(), land_detector::MulticopterLandDetector::_get_ground_contact_state(), land_detector::FixedwingLandDetector::_get_landed_state(), VtolType::check_quadchute_condition(), Simulator::handle_message_hil_state_quaternion(), BlockLocalPositionEstimator::publishLocalPos(), AirspeedModule::Run(), RoverPositionControl::run(), Ekf2::Run(), MavlinkStreamVFRHUD::send(), MavlinkStreamUTMGlobalPosition::send(), MavlinkStreamGlobalPositionInt::send(), MavlinkStreamLocalPositionNED::send(), MulticopterPositionControl::set_vehicle_states(), FixedwingPositionControl::tecs_update_pitch_throttle(), AirspeedModule::update_ground_minus_wind_airspeed(), Standard::update_vtol_state(), and AirspeedModule::update_wind_estimator_sideslip().
float vehicle_local_position_s::vz_max |
Definition at line 80 of file vehicle_local_position.h.
Referenced by Simulator::handle_message_hil_state_quaternion(), BlockLocalPositionEstimator::publishLocalPos(), and Ekf2::Run().
uint8_t vehicle_local_position_s::vz_reset_counter |
Definition at line 90 of file vehicle_local_position.h.
Referenced by FlightTask::_checkEkfResetCounters(), FlightTask::_initEkfResetCounters(), and Ekf2::Run().
float vehicle_local_position_s::x |
Definition at line 57 of file vehicle_local_position.h.
Referenced by FlightTask::_evaluateVehicleLocalPosition(), PrecLand::check_state_conditions(), Simulator::handle_message_hil_state_quaternion(), BlockLocalPositionEstimator::publishLocalPos(), Commander::run(), Ekf2::Run(), MavlinkStreamLocalPositionNED::send(), Commander::set_home_position(), MulticopterPositionControl::set_vehicle_states(), and landing_target_estimator::LandingTargetEstimator::update().
bool vehicle_local_position_s::xy_global |
Definition at line 91 of file vehicle_local_position.h.
Referenced by FlightTaskAuto::_evaluateGlobalReference(), FlightTask::_evaluateVehicleLocalPosition(), Commander::handle_command(), Simulator::handle_message_hil_state_quaternion(), BlockLocalPositionEstimator::publishLocalPos(), and Ekf2::Run().
uint8_t vehicle_local_position_s::xy_reset_counter |
Definition at line 87 of file vehicle_local_position.h.
Referenced by FlightTask::_checkEkfResetCounters(), FlightTask::_initEkfResetCounters(), FlightTaskManualPosition::_updateXYlock(), and Ekf2::Run().
bool vehicle_local_position_s::xy_valid |
Definition at line 83 of file vehicle_local_position.h.
Referenced by FlightTask::_evaluateVehicleLocalPosition(), land_detector::MulticopterLandDetector::_has_position_lock(), Commander::estimator_check(), Simulator::handle_message_hil_state_quaternion(), BlockLocalPositionEstimator::publishLocalPos(), Commander::reset_posvel_validity(), Commander::run(), Ekf2::Run(), MulticopterPositionControl::set_vehicle_states(), and landing_target_estimator::LandingTargetEstimator::update().
float vehicle_local_position_s::y |
Definition at line 58 of file vehicle_local_position.h.
Referenced by FlightTask::_evaluateVehicleLocalPosition(), PrecLand::check_state_conditions(), Simulator::handle_message_hil_state_quaternion(), BlockLocalPositionEstimator::publishLocalPos(), Commander::run(), Ekf2::Run(), MavlinkStreamLocalPositionNED::send(), Commander::set_home_position(), MulticopterPositionControl::set_vehicle_states(), and landing_target_estimator::LandingTargetEstimator::update().
float vehicle_local_position_s::yaw |
Definition at line 71 of file vehicle_local_position.h.
Referenced by Simulator::handle_message_hil_state_quaternion(), Ekf2::Run(), Navigator::run(), MavlinkStreamVFRHUD::send(), MavlinkStreamGlobalPositionInt::send(), Commander::set_home_position(), MissionBlock::set_land_item(), RTL::set_rtl_item(), and sPort_send_GPS_CRS().
float vehicle_local_position_s::z |
Definition at line 59 of file vehicle_local_position.h.
Referenced by FlightTask::_evaluateVehicleLocalPosition(), VtolType::check_quadchute_condition(), PrecLand::check_state_conditions(), Simulator::handle_message_hil_state_quaternion(), BlockLocalPositionEstimator::publishLocalPos(), Commander::run(), Ekf2::Run(), MavlinkStreamVFRHUD::send(), MavlinkStreamGlobalPositionInt::send(), MavlinkStreamLocalPositionNED::send(), MavlinkStreamAltitude::send(), MavlinkStreamWind::send(), Commander::set_home_position(), MulticopterPositionControl::set_vehicle_states(), and landing_target_estimator::LandingTargetEstimator::update().
float vehicle_local_position_s::z_deriv |
Definition at line 65 of file vehicle_local_position.h.
Referenced by VtolType::check_quadchute_condition(), BlockLocalPositionEstimator::publishLocalPos(), Ekf2::Run(), and MulticopterPositionControl::set_vehicle_states().
bool vehicle_local_position_s::z_global |
Definition at line 92 of file vehicle_local_position.h.
Referenced by FlightTaskAuto::_evaluateGlobalReference(), FlightTask::_evaluateVehicleLocalPosition(), Commander::handle_command(), Simulator::handle_message_hil_state_quaternion(), BlockLocalPositionEstimator::publishLocalPos(), Ekf2::Run(), MavlinkStreamVFRHUD::send(), MavlinkStreamGlobalPositionInt::send(), MavlinkStreamAltitude::send(), MavlinkStreamWind::send(), and Commander::set_home_position_alt_only().
uint8_t vehicle_local_position_s::z_reset_counter |
Definition at line 88 of file vehicle_local_position.h.
Referenced by FlightTask::_checkEkfResetCounters(), FlightTask::_initEkfResetCounters(), and Ekf2::Run().
bool vehicle_local_position_s::z_valid |
Definition at line 84 of file vehicle_local_position.h.
Referenced by FlightTask::_evaluateVehicleLocalPosition(), land_detector::MulticopterLandDetector::_has_altitude_lock(), VtolType::check_quadchute_condition(), Commander::estimator_check(), Simulator::handle_message_hil_state_quaternion(), BlockLocalPositionEstimator::publishLocalPos(), Commander::run(), Ekf2::Run(), MavlinkStreamVFRHUD::send(), MavlinkStreamGlobalPositionInt::send(), MavlinkStreamAltitude::send(), MavlinkStreamWind::send(), and MulticopterPositionControl::set_vehicle_states().