2013-03-21 06:14:34 -03:00
|
|
|
#!nsh
|
|
|
|
#
|
2015-07-29 14:16:29 -03:00
|
|
|
# @name HILStar (XPlane)
|
|
|
|
#
|
|
|
|
# @type Simulation
|
|
|
|
#
|
|
|
|
# @output MAIN1 aileron
|
|
|
|
# @output MAIN2 elevator
|
|
|
|
# @output MAIN3 rudder
|
|
|
|
# @output MAIN4 throttle
|
|
|
|
#
|
2015-07-29 16:21:37 -03:00
|
|
|
# @maintainer Lorenz Meier <lorenz@px4.io>
|
2013-03-21 06:14:34 -03:00
|
|
|
#
|
|
|
|
|
2014-02-07 18:13:12 -04:00
|
|
|
sh /etc/init.d/rc.fw_defaults
|
2013-03-21 06:14:34 -03:00
|
|
|
|
2015-06-05 05:15:37 -03:00
|
|
|
if [ $AUTOCNF == yes ]
|
|
|
|
then
|
|
|
|
param set BAT_N_CELLS 3
|
|
|
|
param set FW_AIRSPD_MAX 20
|
|
|
|
param set FW_AIRSPD_MIN 12
|
|
|
|
param set FW_AIRSPD_TRIM 14
|
2016-03-27 00:21:10 -03:00
|
|
|
param set FW_R_TC 0.3
|
|
|
|
param set FW_P_TC 0.3
|
2015-06-05 05:15:37 -03:00
|
|
|
param set FW_L1_DAMPING 0.74
|
|
|
|
param set FW_L1_PERIOD 16
|
|
|
|
param set FW_LND_ANG 15
|
|
|
|
param set FW_LND_FLALT 5
|
|
|
|
param set FW_LND_HHDIST 15
|
|
|
|
param set FW_LND_HVIRT 13
|
|
|
|
param set FW_LND_TLALT 5
|
|
|
|
param set FW_THR_LND_MAX 0
|
|
|
|
param set FW_PR_FF 0.35
|
|
|
|
param set FW_PR_I 0.1
|
|
|
|
param set FW_PR_IMAX 0.4
|
|
|
|
param set FW_PR_P 0.2
|
|
|
|
param set FW_RR_FF 0.6
|
|
|
|
param set FW_RR_I 0.1
|
|
|
|
param set FW_RR_IMAX 0.2
|
|
|
|
param set FW_RR_P 0.3
|
2016-02-15 07:40:57 -04:00
|
|
|
param set RWTO_TKOFF 1
|
2015-06-05 05:15:37 -03:00
|
|
|
fi
|
|
|
|
|
2014-01-27 12:14:18 -04:00
|
|
|
set HIL yes
|
2015-01-06 18:25:06 -04:00
|
|
|
set MIXER AERT
|