mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-28 07:30:34 +08:00
commander handle shutdown command (#8000)
This commit is contained in:
committed by
Daniel Agar
parent
d82806869f
commit
13e64d00a8
@@ -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