mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
It scales the yawspeed setpoint arbitrarily by default with 0.5. This makes no sense because when you give a setpoint of 1rad/s then you expect the setpoint to get executed. If you want manual yawspeed response to be less agressive on the stick use the scaling parameter for the stick MPC_MAN_Y_MAX.
51 lines
961 B
Plaintext
51 lines
961 B
Plaintext
#!nsh
|
|
#
|
|
# @name Steadidrone MAVRIK
|
|
#
|
|
# @type Octo Coax Wide
|
|
# @class Copter
|
|
#
|
|
# @output MAIN1 motor 1
|
|
# @output MAIN2 motor 2
|
|
# @output MAIN3 motor 3
|
|
# @output MAIN4 motor 4
|
|
# @output MAIN5 motor 5
|
|
# @output MAIN6 motor 6
|
|
# @output MAIN7 motor 7
|
|
# @output MAIN8 motor 8
|
|
#
|
|
# @maintainer Simon Wilks <simon@uaventure.com>
|
|
#
|
|
|
|
sh /etc/init.d/rc.mc_defaults
|
|
|
|
if [ $AUTOCNF == yes ]
|
|
then
|
|
param set MC_PITCH_P 4.0
|
|
param set MC_PITCHRATE_P 0.24
|
|
param set MC_PITCHRATE_I 0.09
|
|
param set MC_PITCHRATE_D 0.013
|
|
param set MC_PITCHRATE_MAX 180.0
|
|
|
|
param set MC_ROLL_P 4.0
|
|
param set MC_ROLLRATE_P 0.16
|
|
param set MC_ROLLRATE_I 0.07
|
|
param set MC_ROLLRATE_D 0.009
|
|
param set MC_ROLLRATE_MAX 180.0
|
|
|
|
param set MC_YAW_P 3.0
|
|
param set MC_YAWRATE_P 0.2
|
|
param set MC_YAWRATE_I 0.1
|
|
param set MC_YAWRATE_D 0.0
|
|
|
|
param set MPC_HOLD_MAX_XY 0.25
|
|
param set MPC_THR_MIN 0.15
|
|
param set MPC_Z_VEL_MAX_DN 2.0
|
|
|
|
param set BAT_N_CELLS 4
|
|
fi
|
|
|
|
set MIXER octo_cox_w
|
|
|
|
set PWM_OUT 12345678
|