Skip to content

Aayush/Altitude-Bug-Fix#32

Merged
AidenFavish merged 2 commits into
mainfrom
Aayush/Altitude-Bug-Fix
May 9, 2026
Merged

Aayush/Altitude-Bug-Fix#32
AidenFavish merged 2 commits into
mainfrom
Aayush/Altitude-Bug-Fix

Conversation

@aayushext

@aayushext aayushext commented May 4, 2026

Copy link
Copy Markdown
Contributor

Fixed a small bug where we accessed the local position before it is established which would cause the altitude to frick up. It seem to happen more often on Arc Main Field West.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR tightens FullPose initialization so the composite pose is only buffered after both the attitude and local-position submessages have been initialized. In the context of the message aggregation layer, that helps avoid publishing an invalid early pose sample that could skew altitude/pose consumers during startup.

Changes:

  • Add an early return in FullPose.pose_callback when either attitude or local-position timestamps are still uninitialized.
  • Keep the existing timestamp-skew filter for mismatched attitude/local-position samples.
  • Cast the averaged composite timestamp to a native Python float before storing it.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AidenFavish AidenFavish left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@AidenFavish AidenFavish merged commit 5b91712 into main May 9, 2026
1 check 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.

3 participants