2014-02-07 17:28:42 -04:00
|
|
|
#!nsh
|
|
|
|
|
2014-02-10 08:35:11 -04:00
|
|
|
set VEHICLE_TYPE mc
|
2014-02-07 17:28:42 -04:00
|
|
|
|
|
|
|
if [ $DO_AUTOCONFIG == yes ]
|
|
|
|
then
|
2014-02-07 17:39:06 -04:00
|
|
|
param set MC_ROLL_P 7.0
|
2014-02-11 18:24:49 -04:00
|
|
|
param set MC_ROLLRATE_P 0.1
|
2014-02-07 17:39:06 -04:00
|
|
|
param set MC_ROLLRATE_I 0.0
|
2014-02-11 18:24:49 -04:00
|
|
|
param set MC_ROLLRATE_D 0.003
|
2014-02-07 17:39:06 -04:00
|
|
|
param set MC_PITCH_P 7.0
|
2014-02-11 18:24:49 -04:00
|
|
|
param set MC_PITCHRATE_P 0.1
|
2014-02-07 17:39:06 -04:00
|
|
|
param set MC_PITCHRATE_I 0.0
|
2014-02-11 18:24:49 -04:00
|
|
|
param set MC_PITCHRATE_D 0.003
|
|
|
|
param set MC_YAW_P 2.8
|
|
|
|
param set MC_YAWRATE_P 0.2
|
|
|
|
param set MC_YAWRATE_I 0.0
|
|
|
|
param set MC_YAWRATE_D 0.0
|
|
|
|
param set MC_YAW_FF 0.5
|
|
|
|
|
2014-02-07 17:39:06 -04:00
|
|
|
param set MPC_THR_MAX 1.0
|
|
|
|
param set MPC_THR_MIN 0.1
|
|
|
|
param set MPC_XY_P 1.0
|
|
|
|
param set MPC_XY_VEL_P 0.1
|
|
|
|
param set MPC_XY_VEL_I 0.02
|
|
|
|
param set MPC_XY_VEL_D 0.01
|
|
|
|
param set MPC_XY_VEL_MAX 5
|
|
|
|
param set MPC_XY_FF 0.5
|
|
|
|
param set MPC_Z_P 1.0
|
|
|
|
param set MPC_Z_VEL_P 0.1
|
|
|
|
param set MPC_Z_VEL_I 0.02
|
|
|
|
param set MPC_Z_VEL_D 0.0
|
|
|
|
param set MPC_Z_VEL_MAX 3
|
|
|
|
param set MPC_Z_FF 0.5
|
2014-05-04 14:55:24 -03:00
|
|
|
param set MPC_TILTMAX_AIR 45.0
|
|
|
|
param set MPC_TILTMAX_LND 15.0
|
2014-02-07 17:39:06 -04:00
|
|
|
param set MPC_LAND_SPEED 1.0
|
2014-04-19 10:49:29 -03:00
|
|
|
|
|
|
|
param set PE_VELNE_NOISE 0.5
|
2014-06-01 06:50:14 -03:00
|
|
|
param set PE_VELD_NOISE 0.7
|
2014-04-19 10:49:29 -03:00
|
|
|
param set PE_POSNE_NOISE 0.5
|
|
|
|
param set PE_POSD_NOISE 1.0
|
|
|
|
|
2014-05-22 14:55:24 -03:00
|
|
|
param set NAV_ACCEPT_RAD 2.0
|
2014-02-07 17:28:42 -04:00
|
|
|
fi
|
|
|
|
|
|
|
|
set PWM_RATE 400
|
|
|
|
set PWM_DISARMED 900
|
|
|
|
set PWM_MIN 1075
|
2014-02-11 18:24:49 -04:00
|
|
|
set PWM_MAX 2000
|