mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-30 15:08:16 +08:00
Merge branch 'autostart_cleanup' into navigator_new_vector
This commit is contained in:
@@ -241,6 +241,7 @@ then
|
|||||||
if [ $HIL == yes ]
|
if [ $HIL == yes ]
|
||||||
then
|
then
|
||||||
set OUTPUT_MODE hil
|
set OUTPUT_MODE hil
|
||||||
|
set FMU_MODE serial
|
||||||
else
|
else
|
||||||
# Try to get an USB console if not in HIL mode
|
# Try to get an USB console if not in HIL mode
|
||||||
nshterm /dev/ttyACM0 &
|
nshterm /dev/ttyACM0 &
|
||||||
@@ -373,6 +374,7 @@ then
|
|||||||
|
|
||||||
if [ $HIL == yes ]
|
if [ $HIL == yes ]
|
||||||
then
|
then
|
||||||
|
sleep 1
|
||||||
mavlink start -b 230400 -d /dev/ttyACM0
|
mavlink start -b 230400 -d /dev/ttyACM0
|
||||||
usleep 5000
|
usleep 5000
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user