#$ TITLE: Redpine 666Hz
#$ FIRMWARE_VERSION: 4.3
#$ FIRMWARE_VERSION: 4.4
#$ FIRMWARE_VERSION: 4.5
#$ CATEGORY: RC_LINK
#$ STATUS: OFFICIAL
#$ KEYWORDS: Redpine, rc, link, 666Hz
#$ AUTHOR: ctzsnooze
#$ DESCRIPTION: Basic RC link settings for a 666Hz Redpine SPI link on a Deviation Tx
#$ DESCRIPTION: WARNING: Do not use this Preset with Redpine on OpenTx!
#$ DESCRIPTION: WARNING: be SURE that the Tx hardware ADC Filter is un-checked!
#$ DESCRIPTION: If a log shows excessive noise in your feedforward trace, most likely there is a Tx firmware issue.
#$ DISCUSSION: https://github.com/betaflight/firmware-presets/pull/148

#$ FORCE_OPTIONS_REVIEW: TRUE

#$ INCLUDE: presets/4.3/rc_link/defaults.txt


# rc smoothing should always be enabled with Redpine
set rc_smoothing = ON

set feedforward_averaging = 2_POINT
set feedforward_smooth_factor = 65
set feedforward_jitter_factor = 5

#$ OPTION_GROUP BEGIN: Fine-tuning...

# sharper handling for racing:
#$ OPTION BEGIN (UNCHECKED): Race
set feedforward_jitter_factor = 4
set feedforward_boost = 18
set rc_smoothing_auto_factor = 25
set rc_smoothing_auto_factor_throttle = 25
#$ OPTION END

# at 500hz auto smoothing of 150 is close to 60hz:
#$ OPTION BEGIN (UNCHECKED): Freestyle
set feedforward_jitter_factor = 7
set rc_smoothing_auto_factor = 150
#$ OPTION END

# stronger smoothing for HD freestyle (not for racing):
#$ OPTION BEGIN (UNCHECKED): HD Freestyle
set feedforward_smooth_factor = 70
set feedforward_jitter_factor = 9
set rc_smoothing_auto_factor = 250
set rc_smoothing_setpoint_cutoff = 25
set rc_smoothing_feedforward_cutoff = 25
#$ OPTION END

# smooth Cinematic (not for racing):
#$ OPTION BEGIN (UNCHECKED): Cinematic
set feedforward_averaging = 3_POINT
set feedforward_smooth_factor = 70
set feedforward_jitter_factor = 11
set rc_smoothing_auto_factor = 250
set rc_smoothing_auto_factor_throttle = 250
set rc_smoothing_setpoint_cutoff = 12
set rc_smoothing_feedforward_cutoff = 12
set rc_smoothing_throttle_cutoff = 20
#$ OPTION END

# ultra smooth Cinematic (not for racing):
#$ OPTION BEGIN (UNCHECKED): Ultra Cinematic
set feedforward_averaging = 3_POINT
set feedforward_smooth_factor = 75
set feedforward_jitter_factor = 13
set rc_smoothing_auto_factor = 250
set rc_smoothing_auto_factor_throttle = 250
set rc_smoothing_setpoint_cutoff = 6
set rc_smoothing_feedforward_cutoff = 6
set rc_smoothing_throttle_cutoff = 20
#$ OPTION END

#$ OPTION_GROUP END


#$ OPTION_GROUP BEGIN: Cinematic Rates (optional)

#$ OPTION BEGIN (UNCHECKED): Actual, Centre = 2
set rates_type = ACTUAL
set roll_rc_rate = 2
set pitch_rc_rate = 2
set yaw_rc_rate = 2
set roll_expo = 0
set pitch_expo = 0
set yaw_expo = 0
set roll_srate = 50
set pitch_srate = 50
set yaw_srate = 50
#$ OPTION END

#$ OPTION_GROUP END
