-
Notifications
You must be signed in to change notification settings - Fork 111
core: start-blueos-core: Allow MAV_SYSTEM_ID configuration via env vars #3600
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
base: master
Are you sure you want to change the base?
core: start-blueos-core: Allow MAV_SYSTEM_ID configuration via env vars #3600
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR enhances the start-blueos-core bootstrap script to read an optional MAV_SYSTEM_ID from the environment and inject it into the startup JSON configuration during initialization. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks very much for this! Does this mean that users will need to manually modify the "/root/.config/blueos/bootstrap/startup.json" file if they've modified the autopilot's MAV_SYSID parameter? Ideally this manual file change wouldn't be necessary because we know that BlueOS can see the autopilot's system id at least once the autopilot has started. Of course, having anyway to resolve this problem, even if it's a manual file update is still a step forward so my comment above is not meant to be a blocker, just a question |
Unfortunately, yes. The other approach I can think of is to make mavlink2rest, mavlink-server, and optionally extensions, dynamically learn the system id. We could still use the environment variable to pass to extensions, in which case the kraken would have to learn it to inject it to each extension. |
Hi @joaoantoniocardoso so I should add something like this at the bottom of the file? ![]() |
As you can imagine, that change could be made into an API, called from the UI. |
So I tried to test this but I wasn't able to see a difference. I made the above shown change to the, "/root/.config/blueos/bootstrap/startup.json" file but I'm unsure how I can pull in the change from this PR to the BlueOS running on my RPI. I tried using the "BlueOS Version" screen in BlueOS but couldn't figure out what the "Remove repository" should be. I also looked around for the "/core/start-blueos-core" file but I couldn't find it. Please excuse my ignorace on this |
This should allow us to set
MAV_SYSTEM_ID
via env var in/root/.config/blueos/bootstrap/startup.json
.Helps #3591
How to test
To test it:
SYSID_THISMAV
parameter to2
/root/.config/blueos/bootstrap/startup.json
:Then, open MAVLink-Server UI (http://blueos-avahi.local:8080) and check the SYS ID: