mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
some hacks for the quadshot
This commit is contained in:
parent
edffb2eede
commit
cedfdfca60
14
ROMFS/px4fmu_common/init.d/13000_quadshot
Normal file
14
ROMFS/px4fmu_common/init.d/13000_quadshot
Normal 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
|
||||
12
ROMFS/px4fmu_common/init.d/Roman_mavlink_stream_conf
Normal file
12
ROMFS/px4fmu_common/init.d/Roman_mavlink_stream_conf
Normal 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"
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user