PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <vehicle_global_position.h>
Public Attributes | |
uint64_t | timestamp |
double | lat |
double | lon |
float | alt |
float | alt_ellipsoid |
float | delta_alt |
float | vel_n |
float | vel_e |
float | vel_d |
float | yaw |
float | eph |
float | epv |
float | terrain_alt |
uint8_t | lat_lon_reset_counter |
uint8_t | alt_reset_counter |
bool | terrain_alt_valid |
bool | dead_reckoning |
uint8_t | _padding0 [4] |
Definition at line 51 of file vehicle_global_position.h.
uint8_t vehicle_global_position_s::_padding0[4] |
Definition at line 70 of file vehicle_global_position.h.
float vehicle_global_position_s::alt |
Definition at line 56 of file vehicle_global_position.h.
Referenced by vmount::OutputBase::_calculate_pitch(), Geofence::_updateFence(), RTL::calculate_return_alt_from_cone_half_angle(), Mission::calculate_takeoff_altitude(), Navigator::check_traffic(), FixedwingPositionControl::control_landing(), FixedwingPositionControl::control_position(), FixedwingPositionControl::control_takeoff(), Mission::copy_position_if_valid(), Mission::do_abort_landing(), Mission::do_need_vertical_takeoff(), Navigator::fake_traffic(), frsky_send_frame2(), FixedwingPositionControl::in_takeoff_situation(), Mission::index_closest_mission_item(), MissionBlock::is_mission_item_reached(), MissionBlock::mission_item_to_position_setpoint(), PrecLand::on_activation(), RTL::on_activation(), Sih::publish_sih(), BlockLocalPositionEstimator::publishGlobalPos(), Loiter::reposition(), Ekf2::Run(), Navigator::run(), FixedwingPositionControl::Run(), PrecLand::run_state_descend_above_target(), PrecLand::run_state_horizontal_approach(), PrecLand::run_state_search(), MavlinkStreamUTMGlobalPosition::send(), Commander::set_home_position(), MissionBlock::set_loiter_item(), Mission::set_mission_items(), RCLoss::set_rcl_item(), RTL::set_rtl_item(), Takeoff::set_takeoff_position(), PrecLand::switch_to_state_fallback(), PrecLand::switch_to_state_horizontal_approach(), CameraFeedback::task_main(), FixedwingPositionControl::tecs_update_pitch_throttle(), FixedwingPositionControl::update_desired_altitude(), and MavlinkStreamHighLatency2::write_global_position().
float vehicle_global_position_s::alt_ellipsoid |
Definition at line 57 of file vehicle_global_position.h.
Referenced by Ekf2::Run(), and MavlinkStreamUTMGlobalPosition::send().
uint8_t vehicle_global_position_s::alt_reset_counter |
Definition at line 67 of file vehicle_global_position.h.
Referenced by FixedwingPositionControl::Run().
bool vehicle_global_position_s::dead_reckoning |
Definition at line 69 of file vehicle_global_position.h.
Referenced by BlockLocalPositionEstimator::publishGlobalPos(), and Ekf2::Run().
float vehicle_global_position_s::delta_alt |
Definition at line 58 of file vehicle_global_position.h.
Referenced by Ekf2::Run(), and FixedwingPositionControl::Run().
float vehicle_global_position_s::eph |
Definition at line 63 of file vehicle_global_position.h.
Referenced by Commander::estimator_check(), BlockLocalPositionEstimator::publishEstimatorStatus(), BlockLocalPositionEstimator::publishGlobalPos(), Commander::reset_posvel_validity(), AttitudeEstimatorQ::Run(), Ekf2::Run(), MavlinkStreamUTMGlobalPosition::send(), and Commander::set_home_position().
float vehicle_global_position_s::epv |
Definition at line 64 of file vehicle_global_position.h.
Referenced by BlockLocalPositionEstimator::publishEstimatorStatus(), BlockLocalPositionEstimator::publishGlobalPos(), Ekf2::Run(), MavlinkStreamUTMGlobalPosition::send(), Commander::set_home_position(), and FixedwingPositionControl::update_desired_altitude().
double vehicle_global_position_s::lat |
Definition at line 54 of file vehicle_global_position.h.
Referenced by vmount::OutputBase::_calculate_pitch(), vmount::OutputBase::_handle_position_update(), Geofence::_updateFence(), Mission::altitude_sp_foh_update(), RTL::calculate_return_alt_from_cone_half_angle(), Navigator::check_traffic(), RoverPositionControl::control_position(), FixedwingPositionControl::control_position(), FixedwingPositionControl::control_takeoff(), Mission::copy_position_if_valid(), Mission::do_need_move_to_land(), Mission::do_need_move_to_takeoff(), RTL::find_RTL_destination(), frsky_send_frame2(), Mission::generate_waypoint_from_heading(), FixedwingPositionControl::get_waypoint_heading_distance(), Mission::heading_sp_update(), Mission::index_closest_mission_item(), MissionBlock::is_mission_item_reached(), PrecLand::on_activation(), Land::on_active(), FollowTarget::on_active(), Sih::publish_sih(), BlockLocalPositionEstimator::publishGlobalPos(), Loiter::reposition(), AttitudeEstimatorQ::Run(), RoverPositionControl::run(), Ekf2::Run(), Navigator::run(), FixedwingPositionControl::Run(), PrecLand::run_state_descend_above_target(), PrecLand::run_state_horizontal_approach(), PrecLand::run_state_start(), MavlinkStreamUTMGlobalPosition::send(), MavlinkStreamGlobalPositionInt::send(), Mission::set_align_mission_item(), EngineFailure::set_ef_item(), Commander::set_home_position(), MissionBlock::set_loiter_item(), Mission::set_mission_items(), RCLoss::set_rcl_item(), RTL::set_rtl_item(), MissionBlock::set_takeoff_item(), FixedwingPositionControl::status_publish(), PrecLand::switch_to_state_fallback(), CameraFeedback::task_main(), and MavlinkStreamHighLatency2::write_global_position().
uint8_t vehicle_global_position_s::lat_lon_reset_counter |
Definition at line 66 of file vehicle_global_position.h.
Referenced by RoverPositionControl::run(), Ekf2::Run(), and FixedwingPositionControl::Run().
double vehicle_global_position_s::lon |
Definition at line 55 of file vehicle_global_position.h.
Referenced by vmount::OutputBase::_calculate_pitch(), vmount::OutputBase::_handle_position_update(), Geofence::_updateFence(), Mission::altitude_sp_foh_update(), RTL::calculate_return_alt_from_cone_half_angle(), Navigator::check_traffic(), RoverPositionControl::control_position(), FixedwingPositionControl::control_position(), FixedwingPositionControl::control_takeoff(), Mission::copy_position_if_valid(), Mission::do_need_move_to_land(), Mission::do_need_move_to_takeoff(), RTL::find_RTL_destination(), frsky_send_frame2(), Mission::generate_waypoint_from_heading(), FixedwingPositionControl::get_waypoint_heading_distance(), Mission::heading_sp_update(), Mission::index_closest_mission_item(), MissionBlock::is_mission_item_reached(), PrecLand::on_activation(), Land::on_active(), FollowTarget::on_active(), Sih::publish_sih(), BlockLocalPositionEstimator::publishGlobalPos(), Loiter::reposition(), AttitudeEstimatorQ::Run(), RoverPositionControl::run(), Ekf2::Run(), Navigator::run(), FixedwingPositionControl::Run(), PrecLand::run_state_descend_above_target(), PrecLand::run_state_horizontal_approach(), PrecLand::run_state_start(), MavlinkStreamUTMGlobalPosition::send(), MavlinkStreamGlobalPositionInt::send(), Mission::set_align_mission_item(), EngineFailure::set_ef_item(), Commander::set_home_position(), MissionBlock::set_loiter_item(), Mission::set_mission_items(), RCLoss::set_rcl_item(), RTL::set_rtl_item(), MissionBlock::set_takeoff_item(), FixedwingPositionControl::status_publish(), PrecLand::switch_to_state_fallback(), CameraFeedback::task_main(), and MavlinkStreamHighLatency2::write_global_position().
float vehicle_global_position_s::terrain_alt |
Definition at line 65 of file vehicle_global_position.h.
Referenced by FixedwingPositionControl::control_landing(), FixedwingPositionControl::get_terrain_altitude_takeoff(), BlockLocalPositionEstimator::publishGlobalPos(), Ekf2::Run(), and CameraFeedback::task_main().
bool vehicle_global_position_s::terrain_alt_valid |
Definition at line 68 of file vehicle_global_position.h.
Referenced by FixedwingPositionControl::control_landing(), FixedwingPositionControl::get_terrain_altitude_takeoff(), BlockLocalPositionEstimator::publishGlobalPos(), Ekf2::Run(), and CameraFeedback::task_main().
uint64_t vehicle_global_position_s::timestamp |
Definition at line 53 of file vehicle_global_position.h.
Referenced by Commander::estimator_check(), frsky_send_frame2(), MavlinkReceiver::handle_message_hil_state_quaternion(), Simulator::handle_message_hil_state_quaternion(), Sih::publish_sih(), BlockLocalPositionEstimator::publishGlobalPos(), Commander::reset_posvel_validity(), AttitudeEstimatorQ::Run(), Ekf2::Run(), MavlinkStreamGlobalPositionInt::send(), CameraFeedback::task_main(), and FixedwingPositionControl::tecs_update_pitch_throttle().
float vehicle_global_position_s::vel_d |
Definition at line 61 of file vehicle_global_position.h.
Referenced by FixedwingPositionControl::control_landing(), Sih::publish_sih(), BlockLocalPositionEstimator::publishGlobalPos(), AttitudeEstimatorQ::Run(), RoverPositionControl::run(), Ekf2::Run(), and MavlinkStreamHighLatency2::update_global_position().
float vehicle_global_position_s::vel_e |
Definition at line 60 of file vehicle_global_position.h.
Referenced by frsky_send_frame2(), MissionBlock::is_mission_item_reached(), Sih::publish_sih(), BlockLocalPositionEstimator::publishGlobalPos(), AttitudeEstimatorQ::Run(), FixedwingAttitudeControl::Run(), RoverPositionControl::run(), Ekf2::Run(), FixedwingPositionControl::Run(), sPort_send_GPS_SPD(), sPort_send_SPD(), and MavlinkStreamHighLatency2::update_global_position().
float vehicle_global_position_s::vel_n |
Definition at line 59 of file vehicle_global_position.h.
Referenced by frsky_send_frame2(), MissionBlock::is_mission_item_reached(), Sih::publish_sih(), BlockLocalPositionEstimator::publishGlobalPos(), AttitudeEstimatorQ::Run(), FixedwingAttitudeControl::Run(), RoverPositionControl::run(), Ekf2::Run(), FixedwingPositionControl::Run(), sPort_send_GPS_SPD(), sPort_send_SPD(), and MavlinkStreamHighLatency2::update_global_position().
float vehicle_global_position_s::yaw |
Definition at line 62 of file vehicle_global_position.h.
Referenced by vmount::OutputBase::_handle_position_update(), frsky_send_frame2(), MissionBlock::is_mission_item_reached(), FollowTarget::on_active(), BlockLocalPositionEstimator::publishGlobalPos(), BlockLocalPositionEstimator::publishLocalPos(), Loiter::reposition(), Ekf2::Run(), Navigator::run(), Mission::set_mission_items(), RCLoss::set_rcl_item(), MissionBlock::set_takeoff_item(), MissionBlock::set_vtol_transition_item(), and MavlinkStreamHighLatency2::write_global_position().