mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 04:33:35 +08:00
Adding VTOL Octoplane airframe type (#12303)
* Srcparser updated, default script for VTOL octoplane added.
This commit is contained in:
committed by
Daniel Agar
parent
64ac8c18d2
commit
fb8630c267
@@ -0,0 +1,44 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# @name Generic Octoplane VTOL
|
||||||
|
#
|
||||||
|
# @type VTOL Octoplane
|
||||||
|
# @class VTOL
|
||||||
|
#
|
||||||
|
# @maintainer
|
||||||
|
#
|
||||||
|
# @output MAIN1 motor 1
|
||||||
|
# @output MAIN2 motor 2
|
||||||
|
# @output MAIN3 motor 3
|
||||||
|
# @output MAIN4 motor 4
|
||||||
|
# @output MAIN5 motor 5
|
||||||
|
# @output MAIN6 motor 6
|
||||||
|
# @output MAIN7 motor 7
|
||||||
|
# @output MAIN8 motor 8
|
||||||
|
# @output AUX1 Aileron 1
|
||||||
|
# @output AUX2 Aileron 2
|
||||||
|
# @output AUX3 Elevator
|
||||||
|
# @output AUX4 Rudder
|
||||||
|
# @output AUX5 Throttle
|
||||||
|
#
|
||||||
|
|
||||||
|
sh /etc/init.d/rc.vtol_defaults
|
||||||
|
|
||||||
|
if [ $AUTOCNF = yes ]
|
||||||
|
then
|
||||||
|
param set PWM_AUX_DIS5 950
|
||||||
|
param set PWM_RATE 400
|
||||||
|
|
||||||
|
param set VT_TYPE 2
|
||||||
|
param set VT_MOT_COUNT 8
|
||||||
|
|
||||||
|
# Indicate that FW roll direction was fixed in mixer, to be removed in v1.10
|
||||||
|
param set V19_VT_ROLLDIR 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
set MAV_TYPE 22
|
||||||
|
|
||||||
|
set MIXER octo_cox
|
||||||
|
set MIXER_AUX vtol_AAERT
|
||||||
|
|
||||||
|
set PWM_OUT 12345678
|
||||||
@@ -74,6 +74,8 @@ class ParameterGroup(object):
|
|||||||
return "VTOLQuadRotorTailSitter"
|
return "VTOLQuadRotorTailSitter"
|
||||||
elif (self.name == "VTOL Tiltrotor"):
|
elif (self.name == "VTOL Tiltrotor"):
|
||||||
return "VTOLTiltRotor"
|
return "VTOLTiltRotor"
|
||||||
|
elif (self.name == "VTOL Octoplane"):
|
||||||
|
return "VTOLPlaneOcto"
|
||||||
elif (self.name == "Coaxial Helicopter"):
|
elif (self.name == "Coaxial Helicopter"):
|
||||||
return "HelicopterCoaxial"
|
return "HelicopterCoaxial"
|
||||||
elif (self.name == "Helicopter"):
|
elif (self.name == "Helicopter"):
|
||||||
|
|||||||
Reference in New Issue
Block a user