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

Commander: lock down mav_sys_id and mav_comp_id #23601

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

mrpollo
Copy link
Contributor

@mrpollo mrpollo commented Aug 22, 2024

Only allow setting MAV_SYS_ID and MAV_COMP_ID when initializing commander, similar to the implementation in the mavlink module.

fixes #22542

px4-mav_sys_id-changes-compressed.mp4

@mrpollo mrpollo requested a review from dagar August 22, 2024 17:34
@mrpollo mrpollo force-pushed the mrpollo/restrict_sys_id_set branch from 6ad1ae0 to cc95bd5 Compare August 23, 2024 14:16
- keeps them as local params at init
- only allow to set at init
@mrpollo mrpollo force-pushed the mrpollo/restrict_sys_id_set branch from ca748ad to 81cc7b6 Compare August 23, 2024 14:21
@mrpollo
Copy link
Contributor Author

mrpollo commented Aug 23, 2024

cc @ryanjAA

@dagar dagar merged commit 54f7b58 into main Aug 23, 2024
55 checks passed
@dagar dagar deleted the mrpollo/restrict_sys_id_set branch August 23, 2024 15:19
@ryanjAA
Copy link
Contributor

ryanjAA commented Aug 23, 2024

@mrpollo thanks :)

Backported and tested on local 1.14. Works as intended.

If interested can backport to release 1.14.

ryanjAA added a commit to ryanjAA/PX4-Autopilot that referenced this pull request Sep 25, 2024
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.

mav_sys_id change causes unresponsive system
3 participants