commander: reboot/shutdown usability fixes

- always check with state machine before reboot/shutdown
 - respect BOARD_HAS_POWER_CONTROL (shutdown from command, low battery, power button)
 - px4_shutdown_request add optional delay and always execute from HPWORK
 - px4_shutdown_request split out px4_reboot_request
This commit is contained in:
Daniel Agar
2020-05-06 13:53:54 -04:00
parent 45ebbb895a
commit 746a8f5cf9
96 changed files with 332 additions and 528 deletions
+1 -1
View File
@@ -852,7 +852,7 @@ Replay::run()
//TODO: add parameter -q?
replay_file.close();
px4_shutdown_request(false, false);
px4_shutdown_request();
}
onExitMainLoop();