#Betaflight LUA 1.7.0 freezing on downloading VTX tables

1 messages · Page 1 of 1 (latest)

velvet solar
#

If BF4.4 build does not have VTX in it, BF LUA always freezes when opening on downloading VTX tables. The older version of the LUA script for BF4.3 does not have this problem.

spice condor
#

@supple raven , does lua allow for "try / catch" type error handling?

supple raven
#

@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

velvet solar
#

And how come it's not a problem in the older LUA version for BF4.3?

supple raven
#

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

velvet solar
#

It simply do not download the VTX table ...

supple raven
#

maybe because it already downloaded vtx tables from that flight controller before the firmware was updated?

velvet solar
#

I will do some tests ...

supple raven
#

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

velvet solar
#

I copied all the lua files from older VTX_TABLES directory to the new version of LUA and now it works ...

#

No freezing ...

supple raven
#

Great 👍
We'll look into solutions for this