mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 02:53:33 +08:00
Merge pull request #98 from priseborough/pr-ekf2StatusReporting
EKF: improve reporting of filter status
This commit is contained in:
@@ -366,5 +366,5 @@ void EstimatorInterface::unallocate_buffers()
|
||||
bool EstimatorInterface::local_position_is_valid()
|
||||
{
|
||||
// return true if the position estimate is valid
|
||||
return ((_time_last_imu - _time_last_optflow) < 5e6) || global_position_is_valid();
|
||||
return (((_time_last_imu - _time_last_optflow) < 5e6) && _control_status.flags.opt_flow) || global_position_is_valid();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user