Skip to content

Global position: handle ECEF conversion failures#2150

Merged
vooon merged 1 commit intomavlink:ros2from
JonasPerolini:gp-discard-invalid
Mar 14, 2026
Merged

Global position: handle ECEF conversion failures#2150
vooon merged 1 commit intomavlink:ros2from
JonasPerolini:gp-discard-invalid

Conversation

@JonasPerolini
Copy link

global_position continues after ECEF conversion failures and either uses an uninitialized map_point or marks the map origin initialized with invalid/stale origin data, leading to bad local odometry/TF output.

Solution: stop publishing derived local odometry/TF when fix-to-ECEF conversion fails, and make home-origin updates only after a successful conversion.

…nly update map_origin, ecef_origin is conversion ok
Copy link
Member

@vooon vooon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks!

@vooon vooon merged commit bc01932 into mavlink:ros2 Mar 14, 2026
3 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants