px4-firmware/ROMFS/px4fmu_common/init.d/13001_caipirinha_vtol

47 lines
950 B
Plaintext
Raw Normal View History

2015-07-29 14:19:50 -03:00
#!nsh
#
2016-01-31 10:14:17 -04:00
# @name Caipiroshka Duo Tailsitter
#
2016-01-24 08:22:25 -04:00
# @type VTOL Duo Tailsitter
# @class VTOL
2015-07-29 14:19:50 -03:00
#
# @output MAIN1 motor right
# @output MAIN2 motor left
# @output MAIN5 elevon right
# @output MAIN6 elevon left
2016-01-31 10:14:17 -04:00
#
2015-07-29 14:19:50 -03:00
# @maintainer Roman Bapst <roman@px4.io>
#
sh /etc/init.d/rc.vtol_defaults
2016-02-16 17:55:15 -04:00
if [ $AUTOCNF == yes ]
then
param set MC_ROLL_P 6.0
param set MC_ROLLRATE_P 0.12
param set MC_ROLLRATE_I 0.002
param set MC_ROLLRATE_D 0.003
param set MC_ROLLRATE_FF 0.0
param set MC_PITCH_P 4.5
param set MC_PITCHRATE_P 0.3
param set MC_PITCHRATE_I 0.002
param set MC_PITCHRATE_D 0.003
param set MC_PITCHRATE_FF 0.0
param set MC_YAW_P 3.8
param set MC_YAW_FF 0.5
param set MC_YAWRATE_P 0.22
param set MC_YAWRATE_I 0.02
param set MC_YAWRATE_D 0.0
param set MC_YAWRATE_FF 0.0
param set VT_MOT_COUNT 2
param set VT_IDLE_PWM_MC 1080
param set VT_TYPE 0
param set MAV_TYPE 19
param set VT_ELEV_MC_LOCK 0
2016-02-16 17:55:15 -04:00
fi
set MIXER caipirinha_vtol
set PWM_OUT 1234