ArduCustom / ardupilot

ArduPilot custom branches
GNU General Public License v3.0
17 stars 14 forks source link

Un-cap RF_Mode for CRSF protocol #205

Closed wvarty closed 2 years ago

wvarty commented 2 years ago

The RF_Mode byte in the CRSF protocol is used to communicate the current RF parameters between the RX and the FC. The value is an enum, where each value represents a different mode of operation, e.g in ELRS mode 7 is 500Hz LoRa. photo_2022-05-05_09-39-03

For some unknown reason, the RF_Mode was being capped to a max of 7 in the code. This creates problems when using the master branch on ELRS (soon to become v3.0), which uses modes >7. Removing the cap to allow showing these modes.

wvarty commented 2 years ago

Tested and confirmed working on the bench, using F500 (mode = 8) on ELRS: unknown