OpenTX-Telemetry-Widget icon indicating copy to clipboard operation
OpenTX-Telemetry-Widget copied to clipboard

Timer 3 odd behavior when iNav lua widget is enabled

Open keishii3d opened this issue 11 months ago • 1 comments

Radiomaster TX16S, EdgeTX v2.10.0

I'm in the process of setting up my first flight controller. Last night I installed the iNav widget to my transmitter. Today I noticed that my timer 3 defaults to having 1hr. If I hold the momentary reset switch, it stays at 0, but when I let go it has 1hr again. To check if it was related to the lua widget, I went to a different model on my transmitter, added timer 3, and it works as it should. I then add the inav widget and the odd behavior on timer 3 appeared as it did on my original model where I noticed this behavior. When power cycling the transmitter, timer 3 will become set to "OFF" in the model setup page while still showing 1hr in it's widget. I've tested on 2 other models, disabling timers 1 and 2 seeing if anything changes, and the timer 3 behavior persists. Once the iNav lua widget is removed, timer 3 behaves as it should.

I've searched google, youtube, and this github to see if there is a setting or something I'm unaware of, and have come up empty handed. I don't know if this is normal behavior of the iNav widget, using timer 3 for something, or if I've stumbled on a bug.

keishii3d avatar Jan 21 '25 20:01 keishii3d

i uses 3 timers as well , and notice the 3rd one displaying a 1h count , cannot count up in edgetx from 0:00 only one hour ... when the script is on the card, it will uncheck timer 3 in the model on every reboot , persistand "flight " options wont work ,

if i look at the lua code , it actually uses timer3 , so this explains a bit , it seems to use timer3 on its own , i was hoping to just knock out the lines but it seems necessary to it , still unsure about how it fully words thats what lead me here

else data.battLow = false data.battPercentPlayed = 100 -- Initialize variables on flight reset (uses timer3) tmp = model.getTimer(2) if tmp.value == 0 then loadScript(FILE_PATH .. "load" .. ext, env)(config, data, FILE_PATH) collectgarbage() loadScript(FILE_PATH .. "reset" .. ext, env)(data) collectgarbage() tmp.value = 3600 model.setTimer(2, tmp) end end

godstargod avatar Apr 02 '25 08:04 godstargod