Can LUA detect if reset flight has occurred?

openTx has introduced a range of new features, ideas and bling. It is fast becoming the firmware of choice for many users. openTx will run on ALL current hardware platforms, including the gruvin9x and sky9x boards. Work has already started to support the new FrSky X9D radio!
Post Reply
athertop
Posts: 37
Joined: Sat Aug 08, 2015 12:19 pm
Country: -

Can LUA detect if reset flight has occurred?

Post by athertop »

I have a telemetry script running on 2.1 (and 2.2) Taranis, and want to have some variables in the script reset if the user chooses the "reset flight" menu option. Is there any way to detect in the script that "reset flight" has been actioned?

Thanks, Paul

papaxiclas
Posts: 2
Joined: Tue Sep 26, 2017 4:42 pm
Country: -

Re: Can LUA detect if reset flight has occurred?

Post by papaxiclas »

Hello,
Did you find a solution to this?
thanks
User avatar
rcdiy
Posts: 190
Joined: Fri Jul 01, 2016 6:13 am
Country: Canada
Contact:

Re: Can LUA detect if reset flight has occurred?

Post by rcdiy »

Not directly.
I had to monitor Telemetry values to figure it out.
For example
Gps pilot location only changes when a reset is done
So if prev not = current gps pilot lat or long
Reset has occurred
RCdiy.ca
Stay Safe & Have Fun
OpenTX Manual http://rcdiy.ca
Paying it forward by sharing my Lua scripts, documentation and videos.
papaxiclas
Posts: 2
Joined: Tue Sep 26, 2017 4:42 pm
Country: -

Re: Can LUA detect if reset flight has occurred?

Post by papaxiclas »

Ok, thanks for your help.
Meanwhile I used a similar workaround. Battery consumption, when it is 5mAh means it was reset previously.

Post Reply

Return to “openTx”