commander handle shutdown command (#8000)

This commit is contained in:
James Goppert authored and Daniel Agar committed 2017-09-23 10:35:36 -04:00
1 parent d82806869f
commit 13e64d00a8
3 files changed
+49 -51

No files matched your search

+6
View File
@@ -4217,6 +4217,12 @@ void *commander_low_prio_loop(void *arg)
/* reboot */
px4_shutdown_request(true, false);
} else if (((int)(cmd.param1)) == 2) {
answer_command(cmd, vehicle_command_s::VEHICLE_CMD_RESULT_ACCEPTED, command_ack_pub);
usleep(100000);
/* shutdown */
px4_shutdown_request(false, false);
} else if (((int)(cmd.param1)) == 3) {
answer_command(cmd, vehicle_command_s::VEHICLE_CMD_RESULT_ACCEPTED, command_ack_pub);
usleep(100000);