-
Notifications
You must be signed in to change notification settings - Fork 97
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
ActionServer: allow direct setting of arm/disarm state and vehicle flight mode #370
base: main
Are you sure you want to change the base?
ActionServer: allow direct setting of arm/disarm state and vehicle flight mode #370
Conversation
afc4a50
to
c6aa3a6
Compare
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.
Nice!
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!
} | ||
|
||
message SetFlightModeRequest { | ||
FlightMode flight_mode = 1; |
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.
Probably needs a docstring.
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.
Agreed, makes sense. I'll add it right now.
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.
Done
Summary
The
ActionServer
implementation currently only supports updating arm/disarm status and flight mode by receiving MAVLINK messages from a client. An autopilot implementation may need to take autonomous action to change flight modes or report an armed status apart from explicit GCS command. This PR provides the necessary support to do that.