mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-21 04:27:34 +08:00
746a8f5cf9
- 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
23 lines
277 B
Bash
23 lines
277 B
Bash
#!/bin/sh
|
|
# PX4 commands need the 'px4-' prefix in bash.
|
|
# (px4-alias.sh is expected to be in the PATH)
|
|
. px4-alias.sh
|
|
|
|
uorb start
|
|
|
|
param load
|
|
param set CBRK_SUPPLY_CHK 894281
|
|
param set SYS_RESTART_TYPE 0
|
|
|
|
dataman start
|
|
|
|
tone_alarm start
|
|
|
|
ver all
|
|
|
|
sleep 1
|
|
|
|
tests all
|
|
|
|
shutdown
|