2015-07-29 14:19:50 -03:00
|
|
|
#!nsh
|
2014-12-02 05:28:30 -04:00
|
|
|
#
|
2016-01-31 10:14:17 -04:00
|
|
|
# @name Caipiroshka Duo Tailsitter
|
2014-12-02 05:28:30 -04:00
|
|
|
#
|
2016-01-24 08:22:25 -04:00
|
|
|
# @type VTOL Duo Tailsitter
|
2015-07-29 14:19:50 -03:00
|
|
|
#
|
2016-01-31 10:14:17 -04:00
|
|
|
# @output MAIN1 motor left
|
|
|
|
# @output MAIN2 motor right
|
|
|
|
# @output MAIN5 elevon left
|
|
|
|
# @output MAIN6 elevon right
|
|
|
|
#
|
2015-07-29 14:19:50 -03:00
|
|
|
# @maintainer Roman Bapst <roman@px4.io>
|
2014-12-02 05:28:30 -04:00
|
|
|
#
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2016-04-23 02:56:57 -03:00
|
|
|
param set VT_MOT_COUNT 2
|
|
|
|
param set VT_IDLE_PWM_MC 1080
|
|
|
|
param set VT_TYPE 0
|
|
|
|
param set MAV_TYPE 19
|
2016-02-16 17:55:15 -04:00
|
|
|
fi
|
|
|
|
|
2015-01-06 18:25:06 -04:00
|
|
|
set MIXER caipirinha_vtol
|
2014-12-02 05:28:30 -04:00
|
|
|
|
2016-02-29 09:38:37 -04:00
|
|
|
set PWM_OUT 1234
|