mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
ekf2: simplify global position publication validity check
This commit is contained in:
parent
be92165c54
commit
f8d7574d3c
@ -728,7 +728,7 @@ void EKF2::PublishEventFlags(const hrt_abstime ×tamp)
|
||||
|
||||
void EKF2::PublishGlobalPosition(const hrt_abstime ×tamp)
|
||||
{
|
||||
if (_ekf.global_position_is_valid() && !_preflt_checker.hasFailed()) {
|
||||
if (_ekf.global_position_is_valid()) {
|
||||
const Vector3f position{_ekf.getPosition()};
|
||||
|
||||
// generate and publish global position data
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user