mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-04 16:10:53 +08:00
commander handle shutdown command (#8000)
This commit is contained in:
1 parent
d82806869f
commit
13e64d00a8
3 files changed
+49
-51
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user