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_NavEKF3: dereference arrays using remembered allocation count #26335

Merged
merged 2 commits into from
Feb 28, 2024

Conversation

peterbarker
Copy link
Contributor

Stop trusting that the number of beacons will not change at runtime.

Also fixes reininitialisation.

the fusionReport object is not being cleared when the filter undergoes a forced reset.

So delete and recreate the object.  Will also make this sensitive to the number of beacons changing.

Also don't attempt to allocate zero bytes.
if the count from the beacon library changes we may end up looking at memory we shouldn't
@peterbarker peterbarker force-pushed the pr/beacon-init-method branch from ea74638 to 6d6e695 Compare February 27, 2024 06:01
@tridge tridge merged commit 21edc6a into ArduPilot:master Feb 28, 2024
92 checks passed
@peterbarker peterbarker deleted the pr/beacon-init-method branch February 28, 2024 08:08
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