2014-01-10 19:34:46 -04:00
|
|
|
#!nsh
|
|
|
|
#
|
2015-07-29 14:22:41 -03:00
|
|
|
# @name Phantom FPV Flying Wing
|
2014-01-10 19:34:46 -04:00
|
|
|
#
|
2015-07-29 14:22:41 -03:00
|
|
|
# @url https://pixhawk.org/platforms/planes/z-84_wing_wing
|
|
|
|
#
|
|
|
|
# @type Flying Wing
|
2017-06-27 03:47:42 -03:00
|
|
|
# @class Plane
|
2015-07-29 14:22:41 -03:00
|
|
|
#
|
|
|
|
# @output MAIN1 left aileron
|
|
|
|
# @output MAIN2 right aileron
|
|
|
|
# @output MAIN4 throttle
|
|
|
|
#
|
|
|
|
# @output AUX1 feed-through of RC AUX1 channel
|
|
|
|
# @output AUX2 feed-through of RC AUX2 channel
|
|
|
|
# @output AUX3 feed-through of RC AUX3 channel
|
|
|
|
#
|
2017-06-27 03:47:42 -03:00
|
|
|
# @maintainer Simon Wilks <simon@uaventure.com>
|
2014-01-10 19:34:46 -04:00
|
|
|
#
|
|
|
|
|
2014-03-01 10:47:09 -04:00
|
|
|
sh /etc/init.d/rc.fw_defaults
|
|
|
|
|
2014-11-17 12:10:47 -04:00
|
|
|
if [ $AUTOCNF == yes ]
|
2014-03-15 09:46:09 -03:00
|
|
|
then
|
|
|
|
param set FW_AIRSPD_MIN 13
|
2014-04-19 21:05:20 -03:00
|
|
|
param set FW_AIRSPD_TRIM 15
|
|
|
|
param set FW_AIRSPD_MAX 25
|
2016-03-27 00:21:10 -03:00
|
|
|
param set FW_R_TC 0.3
|
|
|
|
param set FW_P_TC 0.3
|
2014-03-15 09:46:09 -03:00
|
|
|
param set FW_L1_DAMPING 0.75
|
|
|
|
param set FW_L1_PERIOD 15
|
|
|
|
param set FW_PR_FF 0.2
|
|
|
|
param set FW_PR_IMAX 0.2
|
|
|
|
param set FW_PR_P 0.03
|
|
|
|
param set FW_P_LIM_MAX 50
|
|
|
|
param set FW_P_LIM_MIN -50
|
2014-04-19 21:05:20 -03:00
|
|
|
param set FW_P_ROLLFF 1
|
2014-03-15 09:46:09 -03:00
|
|
|
param set FW_RR_FF 0.5
|
|
|
|
param set FW_RR_IMAX 0.2
|
|
|
|
param set FW_RR_P 0.08
|
2014-04-19 21:05:20 -03:00
|
|
|
param set FW_R_LIM 50
|
2014-03-15 09:46:09 -03:00
|
|
|
param set FW_R_RMAX 0
|
2014-08-31 16:11:20 -03:00
|
|
|
# Bottom of bay and nominal zero-pitch attitude differ
|
|
|
|
# the payload bay is pitched up about 7 degrees
|
|
|
|
param set SENS_BOARD_Y_OFF 7.0
|
2014-03-15 09:46:09 -03:00
|
|
|
fi
|
|
|
|
|
2014-07-14 19:06:24 -03:00
|
|
|
set MIXER phantom
|
2014-06-23 02:44:30 -03:00
|
|
|
|
|
|
|
# Provide ESC a constant 1000 us pulse
|
2014-11-17 12:02:57 -04:00
|
|
|
set PWM_OUT 4
|
2014-06-23 02:44:30 -03:00
|
|
|
set PWM_DISARMED 1000
|