position_estimator_inav: mark local position as valid even if GPS not available (e.g. only FLOW)

This commit is contained in:
Anton Babushkin 2014-03-17 22:46:48 +04:00
parent c0c54f01cb
commit 22c8d91389
1 changed files with 1 additions and 1 deletions

View File

@ -810,7 +810,7 @@ int position_estimator_inav_thread_main(int argc, char *argv[])
if (t > pub_last + pub_interval) {
pub_last = t;
/* 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.xy_global = local_pos.xy_valid && use_gps_xy;
local_pos.z_global = local_pos.z_valid && use_gps_z;