ExpressLRS
ExpressLRS copied to clipboard
Add MAVLink telemetry option in LUA & Prevent Wide mode when relevant.
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.
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
Closing this one down, as we went for a different solution. Thanks for your work @nekwebdev. Sorry it was somewhat wasted effort :(