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

Handle reboot and shutdown commands. #8000

Merged
merged 1 commit into from Sep 23, 2017
Merged

Handle reboot and shutdown commands. #8000

merged 1 commit into from Sep 23, 2017

Conversation

jgoppert
Copy link
Member

This allows an off-board computer to reboot the FCU.

@dagar
Copy link
Member

dagar commented Sep 21, 2017

PREFLIGHT_REBOOT_SHUTDOWN is already handled in commander (partially). https://github.com/PX4/Firmware/blob/master/src/modules/commander/commander.cpp#L4211

Where did 10 come from and why is it not in the mavlink spec?

@jgoppert
Copy link
Member Author

OK, I left my cleanup in mavlink receiver and moved shutdown support to commander. No idea where 10 came from, probably somebodies hack that hasn't been put in the spec yet.

Copy link
Member

@dagar dagar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like handle_message_command_int and handle_message_command_long are manually kept in sync.

@dagar dagar merged commit 13e64d0 into master Sep 23, 2017
@dagar dagar deleted the reboot branch September 23, 2017 14:35
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.

None yet

2 participants