olliw42 / mLRS

2.4 GHz & 915/868 MHz & 433 MHz/70 cm LoRa based telemetry and radio link for remote controlled vehicles
GNU General Public License v3.0
295 stars 67 forks source link

Note | High Frame Rates #84

Closed jlpoltrack closed 1 year ago

jlpoltrack commented 1 year ago

No action needed here, just to document.

At least on the Tx side, code limits CRSF telemetry to a frame time of 13 ms (~77 Hz) here: https://github.com/olliw42/mLRS/blob/main/mLRS/CommonTx/crsf_interface_tx.h#L306

Have been able to get 77 Hz fully working (rc, serial, lua) by updating 'telemetry_state_max ' to 13 with 'frame_rate_ms' set to 13.

The 'cheap' way to get higher frame rates to work is to run a higher baud rate on the connection between the Tx module and the radio, this enables setting the gaps in the above code to 2 ms. Was able to fully get FLRC at 100 Hz working on 2.4 GHz.

olliw42 commented 1 year ago

@jlpoltrack could this be closed? I have linked to it in the FLRC discussion thread, https://github.com/olliw42/mLRS/discussions/91, so isn't lost by closing.

jlpoltrack commented 1 year ago

Fine to close