some hacks for the quadshot

This commit is contained in:
Roman Bapst 2014-08-22 16:00:34 +02:00
parent edffb2eede
commit cedfdfca60
4 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,14 @@
#!nsh
#
# Generic quadshot configuration file
#
# Roman Bapst <romanbapst@yahoo.de>
#
sh /etc/init.d/rc.mc_defaults
set MIXER FMU_quadshot
set PWM_OUTPUTS 1234
set PWM_MIN 1070
set PWM_MAX 2000

View File

@ -0,0 +1,12 @@
#!nsh
# Configure stream for Mavlink instance on TELEM2 because it is annoying always removing the SDcard
#
#usleep 100000
#mavlink stream -d /dev/ttyS2 -s ATTITUDE_CONTROLS -r 50
#usleep 100000
#mavlink stream -d /dev/ttyS2 -s RC_CHANNELS_RAW -r 50
#usleep 100000
#mavlink stream -d /dev/ttyS2 -s VFR_HUD -r 50
usleep 100000
mavlink stream -d /dev/ttyS2 -s MANUAL_CONTROL -r 50
echo "Added additional streams on TELEM2"

View File

@ -16,6 +16,7 @@
# 10000 .. 10999 Wide arm / H frame
# 11000 .. 11999 Hexa Cox
# 12000 .. 12999 Octo Cox
# 13000 .. 13999 Vtol
#
# Simulation setups
@ -232,3 +233,11 @@ if param compare SYS_AUTOSTART 12001
then
sh /etc/init.d/12001_octo_cox
fi
#
# Quadshot
#
if param compare SYS_AUTOSTART 13000
then
sh /etc/init.d/13000_quadshot
fi

View File

@ -586,6 +586,7 @@ then
then
echo "[init] Starting addons script: $EXTRAS_FILE"
sh $EXTRAS_FILE
sh /etc/init.d/Roman_mavlink_stream_conf
else
echo "[init] No addons script: $EXTRAS_FILE"
fi