mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 08:31:36 +08:00
EKF: Don't report local position as valid when in a non-position mode
This commit is contained in:
committed by
Daniel Agar
parent
da7d41e78a
commit
44ebfb8c43
@@ -159,7 +159,7 @@ public:
|
||||
int getNumberOfActiveHorizontalAidingSources() const;
|
||||
|
||||
// return true if the local position estimate is valid
|
||||
bool local_position_is_valid() const { return !_deadreckon_time_exceeded; }
|
||||
bool local_position_is_valid() const { return local_position_is_valid(); }
|
||||
|
||||
// return true if the EKF is dead reckoning the position using inertial data only
|
||||
bool inertial_dead_reckoning() const { return _is_dead_reckoning; }
|
||||
|
||||
Reference in New Issue
Block a user