#Betaflight LUA 1.7.0 freezing on downloading VTX tables
1 messages · Page 1 of 1 (latest)
@supple raven , does lua allow for "try / catch" type error handling?
@velvet solar Yes, for now it needs firmware with vtx support to work. We could maybe add functionality for the firmware to report it's build options so that we could skip the vtx table download if there is no vtx support, but that requires msp changes so it would have to be for the next version
@spice condor pcall() may be what you want
Nowadays, more and more people are on HD, so VTX is a thing of the past for them. And that's why they simply won't use the build with VTX support. It definitely needs to be resolved.
And how come it's not a problem in the older LUA version for BF4.3?
Not sure how you got the older(1.6.0?) lua version to download the vtx tables from 4.4.0 without vtx support compiled in, but it shouldn't work
It simply do not download the VTX table ...
maybe because it already downloaded vtx tables from that flight controller before the firmware was updated?
I will do some tests ...
the lua scripts will check if it already has vtx tables for the flight controller when connecting. if it does, it will skip the download.
on your sd card check SCRIPTS/BF/VTX_TABLES. There's the default file which comes with the lua scripts when you install them, and there may be other files named with the MCU ID which is used to identify each unique flight controller. It's a long string of numbers and letters. If you have any of those, compare with mcu_id in cli
I copied all the lua files from older VTX_TABLES directory to the new version of LUA and now it works ...
No freezing ...
Great 👍
We'll look into solutions for this