mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 20:23:33 +08:00
Before #14212 the velocity control gains used in the multicopter position controller were defined as a scale between velocity error in one axis (or it's integral and derivative respectively) and the unit thrust vector. The problem with this is that the normalization of the unit thrust vector changes per vehicle or even vehicle configuration as 0 and 100% thrust get a different physical response. That's why the gains are now defined as scale between velocity error (integral/derivative) and the output acceleration in m/s².
33 lines
553 B
Bash
33 lines
553 B
Bash
#!/bin/sh
|
|
#
|
|
# @name Typhoon H480 SITL
|
|
#
|
|
# @type Hexarotor x
|
|
#
|
|
|
|
sh /etc/init.d/rc.mc_defaults
|
|
|
|
if [ $AUTOCNF = yes ]
|
|
then
|
|
param set MC_PITCHRATE_P 0.1
|
|
param set MC_PITCHRATE_I 0.05
|
|
param set MC_PITCH_P 6.0
|
|
param set MC_ROLLRATE_P 0.15
|
|
param set MC_ROLLRATE_I 0.1
|
|
param set MC_ROLL_P 6.0
|
|
param set MPC_XY_VEL_I_ACC 4
|
|
param set MPC_XY_VEL_P_ACC 3
|
|
|
|
param set RTL_DESCEND_ALT 10
|
|
param set RTL_LAND_DELAY 0
|
|
|
|
param set TRIG_INTERFACE 3
|
|
param set TRIG_MODE 4
|
|
param set MNT_MODE_IN 0
|
|
param set MAV_PROTO_VER 2
|
|
fi
|
|
|
|
set MAV_TYPE 13
|
|
|
|
set MIXER hexa_x
|