Post · 4 min read· pp. 250–252

Obsolete Defines

Software Banner

Note

This page contains old user_defines.txt that have been removed or superseded by new defines.

New items should be added to the top of the list so the last entry here is the oldest. The order of each entry should be [code]definename[/code] followed by the original text of the documentation, ending with a separate paragraph "REMOVED [version] [replacement or reason for removal]".

Obsolete Defines

text
USE_DIVERSITY

Enable antenna-switching diversity for RX that supports it. Safe to leave it on for hardware that doesn't have diversity except for DIY builds which did not populate the RF switch.

text
DYNPOWER_THRESH_UP=15
DYNPOWER_THRESH_DN=21

Change the RSSI thresholds used by the Dynamic Power algorithm. If the RSSI moving average is below DYNPOWER_THRESH_UP dBm from the sensitivity limit, the algorithm will increase the power output by one step. Similarly, if the RSSI is above DYNPOWER_THRESH_DN from the sensitivity limit, the power will be decreased by one step.

text
NO_SYNC_ON_ARM

no sync on arm doesn't transmit sync packets while armed. This is useful for racing as there is less time & packets wasted 🗑️ on sending sync packets (one packet every 5 seconds if connected). HOWEVER if you are doing serious long range ⛰️, keep this disabled because, in the case of a sustained failsafe, the link can not be regained while armed.

AUX1 is the channel ExpressLRS uses to detect "ARMED", and this feature assumes that a low value of the arm switch is disarmed, and a high value is armed. OpenTX can invert your switch if you prefer it to be mechanically inverted. It is best not to enable no sync on the arm when you are first setting up ExpressLRS as it can be a source of confusion.

text
FEATURE_OPENTX_SYNC
FEATURE_OPENTX_SYNC_AUTOTUNE

These features enable lower latency 🏃‍♂️ and offset from the OpenTX radio to the TX. The first is lower latency which should be kept enabled. The second is more experimental and can lower the offset from the radio by tuning it as close as possible to 0, but is experimental (even in 1.0) and is best left disabled.

Both require OpenTX 2.3.12 or above. To install it, you will have to use OpenTX companion application.

Deviation radio users such as those with the T8SG v2/v3 should disable this feature.

You can also use EdgeTX.

text
USE_ESP8266_BACKPACK

This enables communication with the ESP Backpack for over-the-air updates (env:FrSky_TX_R9M_via_WiFi) 🖥️ and debugging via WebSocket 🔍. Uncommented by default, does not need to be changed.

text
#-DHYBRID_SWITCHES_8

Changes how the AUX channels are sent over the air. The default option is Normal Mode with 8x 2-position low-latency switches. Enabling HYBRID_SWITCHES_8 changes this to 1x 2-pos + 6x 7-pos + 1x 16-pos, with only the 2-position being low-latency. In Normal Mode, all switches are sent with every packet, in Hybrid Mode, only AUX1 is sent with every packet and the rest are rotated through. Note: The switch mode MUST match between the RX and TX. A detailed explanation of the differences between the two options can be found in Switch Modes, but 1. If only two position switches are needed, and they must be updated as fast as possible: Normal Mode 2. Almost everyone: Hybrid Mode (Put ARM on AUX1)

text
#-DENABLE_TELEMETRY

Enable advanced telemetry support. This option must be enabled on both TX and RX. The following telemetry messages are supported:

  • GPS
  • BATTERY_SENSOR
  • ATTITUDE
  • DEVICE_INFO
  • FLIGHT_MODE
  • MSP_RESP

Note

Increase the telemetry rate with the ExpressLRS Lua script. Increase the rate until the sensor lost warnings go away. It is normal to set it up to 1:16 with 200 Hz refresh rate.

Note

It must be enabled together with HYBRID_SWITCHES_8.

text
-DUSE_500HZ

This enables 500Hz mode for 2.4 GHz RXes and TXes. The drawback is that you have to give up 25Hz mode to add 500Hz mode. It requires OpenTX 2.3.12 or Newer, EdgeTX or a Radio firmware that has CRSFShot or Mixer Sync.

text
-DUSE_UART2

This enables integration with Jye's FENIX rx5805 pro-diversity module

text
-DFAST_SYNC

An option that adds faster initial syncing, by changing how long the receiver waits for a connection in each mode while not connected. This option is now the default, but disabling it can help to sync at lower packet rates (50Hz and below).

text
#-DR9M_UNLOCK_HIGHER_POWER
text
#-DARM_CHANNEL=AUX1

If you are using a different channel than the default you need to edit 🔥 (or you may not be able to gain sync safely - the default is listed in #DARM_CHANNEL as AUX1 which is Channel 5).

NB This feature assumes that a low value of the arm switch is disarmed, and a high value is armed. If you have the arm switch reversed it will not work correctly and the link won't be established. For this reason, it may be best not to enable no sync on the arm when you are first setting up ExpressLRS as it can be a source of confusion.

text
#-DLOCK_ON_50HZ

LOCK_ON_50HZ locks the RX at 50Hz mode from the power-up. (Only recommended for long range, and partly redundant with the previous feature.) Merged in Pull 143

text
-DAUTO_WIFI_ON_BOOT