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

init UAS payload in set_data #104

Merged
merged 1 commit into from
Mar 5, 2023

Conversation

BluemarkInnovations
Copy link
Contributor

In the current implementation, the UAS data variable that contains the RID payload is only initialized during boot. Also when a "valid" var like SelfIDValid is set to 1, it will remain 1 until the RID module reboots.

In the PR, the UAS data variable is initialized before filling it.

So if a packet payload has no valid data anymore (like location, system, selfID etc), do not broadcast it anymore. Otherwise the old, outdated, data would be used, as in the current implementation.

@tridge tridge force-pushed the init_RID_payload branch from bf2cb00 to 770df48 Compare March 5, 2023 01:30
@tridge
Copy link
Contributor

tridge commented Mar 5, 2023

looks good, will test

@tridge tridge merged commit 495a4b8 into ArduPilot:master Mar 5, 2023
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