Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP_NavEKF: option to align extnav to optflow pos estimate #27487

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

rmackay9
Copy link
Contributor

@rmackay9 rmackay9 commented Jul 8, 2024

This is a cut-down version of PR #26632

This adds a new EK3_SRC_OPTION bit that allows "re-aligning" the External Nav position to the AHRS when optical flow is used (e.g. when External Nav is not used). Previously this re-alignment would only occur when using GPS or Beacons that provide an absolute position.

Re-aligning to the optical flow is useful when the ModalAI VOXL cameras (and perhaps other external nav systems) are paired with an optical flow sensor for backup. It means the pilot should not notice any position jumps when switching between the two sources.

This has been tested on real hardware and below are the before and after screenshots. During this testing the vehicle was first switched to use Optical Flow, the vehicle was then moved and switched to ExtNav. The "Before" image shows the position jump which is cause by optical flow drifting a bit compared to the VOXL camera. In the "After" we see there is no position jump because, while the optical flow was active, the VOXL's position was constantly being shifted to the optical flow based position.

before-pos-jump
after-no-pos-jump

@tridge tridge merged commit 5a8ed5f into ArduPilot:master Jul 9, 2024
92 checks passed
@rmackay9 rmackay9 deleted the viso-align-when-using-optflow branch July 9, 2024 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement WikiNeeded needs wiki update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants