#$ TITLE: ExpressLRS 50Hz
#$ FIRMWARE_VERSION: 4.3
#$ FIRMWARE_VERSION: 4.4
#$ FIRMWARE_VERSION: 4.5
#$ CATEGORY: RC_LINK
#$ STATUS: OFFICIAL
#$ KEYWORDS: ELRS, express, 50Hz, 20ms, rc, rx, link, smoothing
#$ AUTHOR: ctzsnooze
#$ DESCRIPTION: RC link settings for a 50Hz ELRS link via CRSF.
#$ DESCRIPTION: WARNING: make ABSOLUTELY SURE that the OpenTx or EdgeTx Hardware ADC Filter is un-checked!
#$ DESCRIPTION: WARNING: check that you are using a compatible version of EdgeTx or OpenTx!
#$ DESCRIPTION: WARNING: Cinematic settings are very smooth - there is noticeable delay in stick response

#$ FORCE_OPTIONS_REVIEW: TRUE

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

# 50hz default settings in case no tuning option is selected
set feedforward_averaging = OFF
set feedforward_smooth_factor = 0
set feedforward_jitter_factor = 12
set feedforward_boost = 5


#$ OPTION_GROUP BEGIN: Fine-tuning...

# sharper handling for racing - note that 50Hz is too slow for racing
#$ OPTION BEGIN (UNCHECKED): Racing (50Hz isn't any good for racing)
set feedforward_jitter_factor = 7
#$ OPTION END

# default is suitable for freestyle, though may transfer 50hz stepping to HD:
#$ OPTION BEGIN (UNCHECKED): Freestyle
set feedforward_jitter_factor = 10
#$ OPTION END

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

# very smooth Cinematic (not for racing):
#$ OPTION BEGIN (UNCHECKED): Cinematic
set feedforward_smooth_factor = 20
set feedforward_jitter_factor = 15
set rc_smoothing_auto_factor = 35   
set rc_smoothing_auto_factor_throttle = 28
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_smooth_factor = 40
set feedforward_jitter_factor = 20
set rc_smoothing_auto_factor = 90
set rc_smoothing_auto_factor_throttle = 28
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: (EXCLUSIVE) ELRS Rx connection method (choose one):

#$ OPTION BEGIN (UNCHECKED): Serial, separate Rx
feature RX_SERIAL
set serialrx_provider = CRSF
#$ OPTION END

#$ OPTION BEGIN (UNCHECKED): SPI, on the FC
feature RX_SPI
set rx_spi_protocol = EXPRESSLRS
#$ OPTION END

#$ OPTION_GROUP END


#$ OPTION_GROUP BEGIN: (EXCLUSIVE) Voltage readings (choose one):

# per cell or whole pack voltage readings:
#$ OPTION BEGIN (UNCHECKED): Single Cell values
set report_cell_voltage = ON
#$ OPTION END

#$ OPTION BEGIN (UNCHECKED): Whole pack values
set report_cell_voltage = OFF
#$ 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
