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

{Sponsored by Intelliterra} Made "Declare Emergency" button send MAV_CMD to set emergency #10770

Closed

Conversation

jnomikos
Copy link
Contributor

@jnomikos jnomikos commented Aug 10, 2023

Currently the "Declare Emergency" button does not actually set the OPEN_DRONE_ID_LOCATION status to emergency on PX4. I created a PR into mavlink here which adds a MAV_CMD_DO_SET_EMERGENCY command. My changes on this PR make it so that the Declare Emergency button sends that command.

As a note, I tested the MAVLink changes on QGroundControl by making the changes to the detached head submodule and building that first, since QGC currently is not on the most recent MAVLink build.

Context
Link to MAVLink PR: mavlink/mavlink#2027

Link to PX4 PR: PX4/PX4-Autopilot#21959

@jnomikos
Copy link
Contributor Author

Build is failing because I did not add my MAVLink changes to this PR

@Davidsastresas
Copy link
Member

Thanks. Lets wait until it is merged in mavlink and PX4. I don't think Ardupilot manages this message, so maybe we could move that message sending function to PX4 firmwareplugin when the time comes.

Thanks!

@Davidsastresas
Copy link
Member

Davidsastresas commented Nov 16, 2023

It looks good to me, but we need to:

@jnomikos
Copy link
Contributor Author

It looks good to me, but we need to:

I talked with PX4 devs a few months ago and they came to the conclusion that adding emergency button functionality isn't a necessity based on the RID requirements provided. They told me to keep my PRs up just so we have it in case anything changes.

@Davidsastresas
Copy link
Member

Thanks for the answer. In that case we will close this one, we can reopen it in the future if the situation changes. Thanks!

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