You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.2 KiB
55 lines
1.2 KiB
11 years ago
|
#!nsh
|
||
|
#
|
||
10 years ago
|
# @name Phantom FPV Flying Wing
|
||
11 years ago
|
#
|
||
7 years ago
|
# @url https://docs.px4.io/en/frames_plane/wing_wing_z84.html
|
||
10 years ago
|
#
|
||
|
# @type Flying Wing
|
||
8 years ago
|
# @class Plane
|
||
10 years ago
|
#
|
||
|
# @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
|
||
|
#
|
||
8 years ago
|
# @maintainer Simon Wilks <simon@uaventure.com>
|
||
11 years ago
|
#
|
||
|
|
||
11 years ago
|
sh /etc/init.d/rc.fw_defaults
|
||
|
|
||
6 years ago
|
if [ $AUTOCNF = yes ]
|
||
11 years ago
|
then
|
||
|
param set FW_AIRSPD_MIN 13
|
||
11 years ago
|
param set FW_AIRSPD_TRIM 15
|
||
|
param set FW_AIRSPD_MAX 25
|
||
9 years ago
|
param set FW_R_TC 0.3
|
||
|
param set FW_P_TC 0.3
|
||
11 years ago
|
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
|
||
11 years ago
|
param set FW_P_ROLLFF 1
|
||
11 years ago
|
param set FW_RR_FF 0.5
|
||
|
param set FW_RR_IMAX 0.2
|
||
|
param set FW_RR_P 0.08
|
||
11 years ago
|
param set FW_R_LIM 50
|
||
7 years ago
|
param set FW_R_RMAX 50
|
||
7 years ago
|
|
||
|
param set PWM_DISARMED 1000
|
||
|
|
||
11 years ago
|
# 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
|
||
11 years ago
|
fi
|
||
|
|
||
11 years ago
|
set MIXER phantom
|
||
11 years ago
|
|
||
|
# Provide ESC a constant 1000 us pulse
|
||
10 years ago
|
set PWM_OUT 4
|