mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 20:03:34 +08:00
some hacks for the quadshot
This commit is contained in:
@@ -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
|
||||||
@@ -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"
|
||||||
@@ -16,6 +16,7 @@
|
|||||||
# 10000 .. 10999 Wide arm / H frame
|
# 10000 .. 10999 Wide arm / H frame
|
||||||
# 11000 .. 11999 Hexa Cox
|
# 11000 .. 11999 Hexa Cox
|
||||||
# 12000 .. 12999 Octo Cox
|
# 12000 .. 12999 Octo Cox
|
||||||
|
# 13000 .. 13999 Vtol
|
||||||
|
|
||||||
#
|
#
|
||||||
# Simulation setups
|
# Simulation setups
|
||||||
@@ -232,3 +233,11 @@ if param compare SYS_AUTOSTART 12001
|
|||||||
then
|
then
|
||||||
sh /etc/init.d/12001_octo_cox
|
sh /etc/init.d/12001_octo_cox
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#
|
||||||
|
# Quadshot
|
||||||
|
#
|
||||||
|
if param compare SYS_AUTOSTART 13000
|
||||||
|
then
|
||||||
|
sh /etc/init.d/13000_quadshot
|
||||||
|
fi
|
||||||
|
|||||||
@@ -586,6 +586,7 @@ then
|
|||||||
then
|
then
|
||||||
echo "[init] Starting addons script: $EXTRAS_FILE"
|
echo "[init] Starting addons script: $EXTRAS_FILE"
|
||||||
sh $EXTRAS_FILE
|
sh $EXTRAS_FILE
|
||||||
|
sh /etc/init.d/Roman_mavlink_stream_conf
|
||||||
else
|
else
|
||||||
echo "[init] No addons script: $EXTRAS_FILE"
|
echo "[init] No addons script: $EXTRAS_FILE"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user