Skip to content

Commit

Permalink
ekf2: always publish global position when origin has been set
Browse files Browse the repository at this point in the history
  • Loading branch information
haumarco authored Oct 4, 2024
1 parent ad28c58 commit 7d0e93b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/ekf2/EKF2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ void EKF2::PublishEventFlags(const hrt_abstime &timestamp)

void EKF2::PublishGlobalPosition(const hrt_abstime &timestamp)
{
if (_ekf.global_position_is_valid()) {
if (_ekf.global_origin_valid() && _ekf.control_status().flags.yaw_align) {
const Vector3f position{_ekf.getPosition()};

// generate and publish global position data
Expand Down

0 comments on commit 7d0e93b

Please sign in to comment.