mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 11:21:35 +08:00
position_estimator_inav: mark local position as valid even if GPS not available (e.g. only FLOW)
This commit is contained in:
@@ -810,7 +810,7 @@ int position_estimator_inav_thread_main(int argc, char *argv[])
|
|||||||
if (t > pub_last + pub_interval) {
|
if (t > pub_last + pub_interval) {
|
||||||
pub_last = t;
|
pub_last = t;
|
||||||
/* publish local position */
|
/* publish local position */
|
||||||
local_pos.xy_valid = can_estimate_xy && use_gps_xy;
|
local_pos.xy_valid = can_estimate_xy;
|
||||||
local_pos.v_xy_valid = can_estimate_xy;
|
local_pos.v_xy_valid = can_estimate_xy;
|
||||||
local_pos.xy_global = local_pos.xy_valid && use_gps_xy;
|
local_pos.xy_global = local_pos.xy_valid && use_gps_xy;
|
||||||
local_pos.z_global = local_pos.z_valid && use_gps_z;
|
local_pos.z_global = local_pos.z_valid && use_gps_z;
|
||||||
|
|||||||
Reference in New Issue
Block a user