#$ TITLE: FrSky Sbus or FPort
#$ FIRMWARE_VERSION: 4.3
#$ FIRMWARE_VERSION: 4.4
#$ FIRMWARE_VERSION: 4.5
#$ CATEGORY: RC_LINK
#$ STATUS: OFFICIAL
#$ KEYWORDS: frsky, sbus, fport, 9ms, 111hz, rc, link, smoothing
#$ AUTHOR: ctzsnooze
#$ DESCRIPTION: RC link settings for a 111Hz / 9ms D16 with FrSky Sbus or FPort link.
#$ DESCRIPTION: WARNING: make ABSOLUTELY SURE that the OpenTx or EdgeTx Hardware ADC Filter is un-checked!
#$ DESCRIPTION: Use a recent version of OpenTx / EdgeTx with good module sync.
#$ DESCRIPTION: Note: Telemetry requires smartPort (s.Port) and does not convey RSSI (use Lua or analog RSSI).
#$ FORCE_OPTIONS_REVIEW: TRUE

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

feature RX_SERIAL

#$ OPTION_GROUP BEGIN: (EXCLUSIVE) Sbus or FPort (choose only one)

#$ OPTION BEGIN (UNCHECKED): Sbus
set serialrx_provider = SBUS
#$ OPTION END

#$ OPTION BEGIN (UNCHECKED): FPort
set serialrx_provider = FPORT
set serialrx_inverted = ON
set serialrx_halfduplex = ON
#$ OPTION END

#$ OPTION_GROUP END

set feedforward_averaging = OFF
set feedforward_smooth_factor = 25
set feedforward_jitter_factor = 8
set frsky_vfas_precision = 1

# we do not recommend disabling rc smoothing
set rc_smoothing = ON

# set to your preference in CLI
# set frsky_default_lat = your_latitude
# set frsky_default_long = your_longitude
# set frsky_gps_format = ?
# set smartport_use_extra_sensors = usually off unless you have extra sensors

#$ OPTION_GROUP BEGIN: (EXCLUSIVE) Fine-tuning...

# sharper handling for racing (25 of auto RC smoothing = 47hz RC smoothing)
#$ OPTION BEGIN (UNCHECKED): Race
set feedforward_smooth_factor = 20
set feedforward_jitter_factor = 6
set rc_smoothing_auto_factor = 25
#$ OPTION END

# default is suitable for freestyle (30 of auto RC smoothing = 41hz RC smoothing)
#$ 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_smooth_factor = 40
set feedforward_jitter_factor = 12
set rc_smoothing_auto_factor = 60
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 = 45
set feedforward_jitter_factor = 14
set rc_smoothing_auto_factor = 130  
set rc_smoothing_auto_factor_throttle = 70  
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 = 45
set feedforward_jitter_factor = 16
set rc_smoothing_auto_factor = 260
set rc_smoothing_auto_factor_throttle = 70
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) 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: Metric or Imperial units

# metric or imperial units:
#$ OPTION BEGIN (UNCHECKED): Metric
set frsky_unit = metric
#$ OPTION END
#$ OPTION BEGIN (UNCHECKED): Imperial
set frsky_unit = imperial
#$ OPTION END

#$ OPTION_GROUP END


#$ OPTION_GROUP BEGIN: Hardware options

# telemetry inverted:
set tlm_inverted = OFF
#$ OPTION BEGIN (UNCHECKED): Telemetry inverted (not the default)
set tlm_inverted = ON
#$ OPTION END

# telemetry halfduplex:
set tlm_halfduplex = ON
#$ OPTION BEGIN (UNCHECKED): Full duplex telemetry (not the default)
set tlm_halfduplex = OFF
#$ OPTION END

# IMPORTANT: Bound in D16 with more than 8 channels = too slow for racing
#$ OPTION BEGIN (UNCHECKED): Bound with >8 channels (not recommended)
set feedforward_averaging = 2_POINT
set feedforward_smooth_factor = 35
#$ 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
