mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
aerofc: Add autostart script
As ASC use a non-standard UART for mavlink it is necessary check for the board name and set SYS_AUTOSTART to initialize mavlink on the right interface otherwise there is no way to change the SYS_AUTOSTART.
This commit is contained in:
committed by
Lorenz Meier
parent
effdb37a2b
commit
15c75ebb40
@@ -0,0 +1,13 @@
|
|||||||
|
#!nsh
|
||||||
|
#
|
||||||
|
# @name AEROFC V1 board
|
||||||
|
#
|
||||||
|
# @type Quadrotor x
|
||||||
|
|
||||||
|
sh /etc/init.d/rc.mc_defaults
|
||||||
|
|
||||||
|
tap_esc start -d /dev/ttyS0 -n 4
|
||||||
|
set OUTPUT_DEV /dev/tap_esc
|
||||||
|
set MIXER quad_x
|
||||||
|
|
||||||
|
set MAVLINK_F "-r 1200 -d /dev/ttyS2"
|
||||||
@@ -179,6 +179,11 @@ then
|
|||||||
set USE_IO no
|
set USE_IO no
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ver hwcmp AEROFC_V1
|
||||||
|
then
|
||||||
|
param set SYS_AUTOSTART 4070
|
||||||
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Set parameters and env variables for selected AUTOSTART
|
# Set parameters and env variables for selected AUTOSTART
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user