#$ TITLE: 533 TinyTrainer Karate
#$ FIRMWARE_VERSION: 4.3
#$ CATEGORY: TUNE
#$ STATUS: COMMUNITY
#$ KEYWORDS: karate, race, 533, 3 inch, 3", sugarK, shames, tiny, trainer, spec, tinyTrainer
#$ AUTHOR: sugarK
#$ DESCRIPTION: This racing tune was developed for the 533 TinyTrainer spec class with @Shames throwing his quad out the window of his office and sending me logs.
#$ DESCRIPTION: 
#$ DESCRIPTION: Things to note.. YOU HAVE TO USE RPM FILTERING WITH THIS TUNE, failure to do so might result in fire and regarding Dshot600, if your setup has errors in the motor tab using bidirectional Dshot then change to 8k/4k and dshot300. Preset sets motor poles count to 12 to match with the Tiny Trainer Headsup motors.
#$ DESCRIPTION: SECOND NOTE.... Radio links.. 1. Make sure your radio system is totally up to date using either Edgetx or Opentx and your ADC in the hardware page is OFF 2. Go to the radio presets and apply the correct setup for your system and link speed.
#$ DISCUSSION: https://github.com/betaflight/firmware-presets/pull/81
#$ INCLUDE_WARNING: misc/warnings/en/rpm_filters.txt
#$ INCLUDE: presets/4.3/tune/defaults.txt
#$ INCLUDE: presets/4.3/filters/defaults.txt



# -- Gyro lowpass filters --
set gyro_lpf1_static_hz = 0
set gyro_lpf1_dyn_min_hz = 0
set gyro_lpf1_dyn_max_hz = 0


# -- Gyro Dynamic Notches --
set dyn_notch_count = 2
set dyn_notch_q = 500
set dyn_notch_min_hz = 200
set dyn_notch_max_hz = 700

# -- Dterm filtering --


# -- RPM filtering --
set dshot_bidir = ON
set rpm_filter_fade_range_hz = 100
set motor_poles = 12

# -- Misc --
set yaw_spin_recovery = AUTO
set thrust_linear = 0
set throttle_boost = 7


# -- Antigravity --
set anti_gravity_gain = 3000

# -- iTerm  --
set iterm_relax_cutoff = 20

# -- PIDsum limits --
set iterm_limit = 500
set pidsum_limit_yaw = 1000


# -- PID values --
set simplified_pids_mode = RP
set simplified_i_gain = 115
set simplified_d_gain = 125
set simplified_pi_gain = 90
set simplified_dmax_gain = 70
set simplified_feedforward_gain = 105
set simplified_pitch_d_gain = 95
simplified_tuning apply

# -- TPA --
set tpa_rate = 70
set tpa_breakpoint = 1250

#$ OPTION BEGIN (CHECKED): Dshot600
set dshot_bidir = ON
set motor_pwm_protocol = DSHOT600
#$ OPTION END

#$ OPTION BEGIN (UNCHECKED): Dshot300
set dshot_bidir = ON
set motor_pwm_protocol = Dshot300
#$ OPTION END

#$ OPTION BEGIN (CHECKED): dynamic idle
set dshot_idle_value = 700
set dyn_idle_min_rpm = 60
set dyn_idle_p_gain = 35
#$ OPTION END




