#$ TITLE: Street League LeadFingers PIDtoolbox tune
#$ FIRMWARE_VERSION: 4.3
#$ CATEGORY: TUNE
#$ STATUS: EXPERIMENTAL
#$ KEYWORDS: Street League, StreetLeague, Street, League, LeadFingers, PIDtoolbox, 7"
#$ AUTHOR: LeadFingers

#$ DESCRIPTION: LeadFingers tune for Street League quads
#$ DESCRIPTION: ESC must be bi-directional Dshot ready
#$ WARNING: **DO NOT** Flash this preset to a quad that is not Street League Spec
#$ DISCUSSION: https://discord.gg/rqGfKBbYbP
#$ INCLUDE: presets/4.3/tune/defaults.txt
#$ INCLUDE: presets/4.3/filters/defaults.txt

# -- Undo some default things --
set pidsum_limit = 1000
set pidsum_limit_yaw = 1000
set dshot_bidir = ON

# -- Filter Settings --
set gyro_lpf1_static_hz = 0
set gyro_lpf2_static_hz = 200
set dyn_notch_q = 400
set dyn_notch_min_hz = 110
set dyn_notch_max_hz = 400
set gyro_lpf1_dyn_min_hz = 0
set gyro_lpf1_dyn_max_hz = 0
set simplified_gyro_filter = OFF
set rpm_filter_harmonics = 1
set rpm_filter_q = 1000
set dterm_lpf1_static_hz = 0

# -- PID Settings --
set simplified_master_multiplier = 180
set simplified_i_gain = 50
set simplified_d_gain = 185
set simplified_pi_gain = 150
set simplified_dmax_gain = 0
set simplified_feedforward_gain = 90
set simplified_pitch_d_gain = 115
set simplified_pitch_pi_gain = 105
simplified_tuning apply

# -- spec settings --
set throttle_boost = 5
set throttle_boost_cutoff = 15

#$ OPTION_GROUP BEGIN: Select Dshot 300 or 600

#$ OPTION BEGIN (UNCHECKED): Dshot 300
set motor_pwm_protocol = DSHOT300
#$ OPTION END

#$ OPTION BEGIN (UNCHECKED): Dshot 600
set motor_pwm_protocol = DSHOT600
#$ OPTION END

#$ OPTION_GROUP END