ExpressLRS icon indicating copy to clipboard operation
ExpressLRS copied to clipboard

Add MAVLink telemetry option in LUA & Prevent Wide mode when relevant.

Open nekwebdev opened this issue 1 year ago • 1 comments

MAVLink telemetry ratio option forces 1:2 and also forces Hybrid switch mode when using a packet rate that is not full res.

Note that I changed the tester default to be deleted from TLM_RATIO_1_2 to TLM_RATIO_MAVLINK.

nekwebdev avatar Dec 04 '23 06:12 nekwebdev

Ran a few tests.

As expected LUA will not change to MavLink tlm ratio when not using full res packet rate if connected.

I then tested the various switch modes.

Using MAVLink Protocol:

F1000 - MAVLink tlm - Hybrid - as expected D500 - MAVLink tlm - Hybrid - as expected 500Hz - MAVLink tlm - Hybrid - as expected 333Hz Full Res - MAVLink tlm - 8ch,16ch,12ch all as expected

I then removed the hardcoded protocol in rx_main.cpp and tx_main.cpp and reverting to CRSF

CRSF Protocol:

F1000 - Std tlm - Hybrid - as expected F1000 - Std tlm - Wide - as expected D500 - Std tlm - Hybrid - as expected D500 - Std tlm - Wide - as expected 500Hz - Std tlm - Hybrid - as expected 500Hz - Std tlm - Wide - as expected 333Hz Full Res - Std tlm - 8ch,16ch,12ch all as expected

nekwebdev avatar Dec 04 '23 07:12 nekwebdev

Closing this one down, as we went for a different solution. Thanks for your work @nekwebdev. Sorry it was somewhat wasted effort :(

wvarty avatar Jun 02 '24 00:06 wvarty