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
Can LUA detect if reset flight has occurred?
-
- Posts: 2
- Joined: Tue Sep 26, 2017 4:42 pm
- Country: -
Re: Can LUA detect if reset flight has occurred?
Hello,
Did you find a solution to this?
thanks
Did you find a solution to this?
thanks
Re: Can LUA detect if reset flight has occurred?
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
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.
Stay Safe & Have Fun
OpenTX Manual http://rcdiy.ca
Paying it forward by sharing my Lua scripts, documentation and videos.
-
- Posts: 2
- Joined: Tue Sep 26, 2017 4:42 pm
- Country: -
Re: Can LUA detect if reset flight has occurred?
Ok, thanks for your help.
Meanwhile I used a similar workaround. Battery consumption, when it is 5mAh means it was reset previously.
Meanwhile I used a similar workaround. Battery consumption, when it is 5mAh means it was reset previously.