Clr (F5) switch function also as a free selectable switch item or Lua api

  • andreobi
  • andreobi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 19
  • Thank you received: 23

TPL_KUNENA_MESSAGE_CREATED Clr (F5) switch function also as a free selectable switch item or Lua api

23 Oct 2020 21:06
#1
I would like to get a bit more freedom about how and when to clear the flight data Clr (F5)

Today I have to press Clr (F5) to reset the flight data, there is no other way to do it.

I would like to reset the flight data via an LUA app, maybe when a fullloaded battery is connected or a delay time after landing is elapsed or ... that is a decision which has to be programmed in LUA.

To enable this functionality I can imagine two different solution:
1. Jeti provides a menu topic where the user can define a switch item which acts like the Clr (F5) button.
or
2 Jeti extends the LUA api something like <system.clrFlightData(press)>
<press> could be "short" or "long" or "super short"
"super short" will only clear the signal lost alarm

Kind regards
Andre

Please Log in or Create an account to join the conversation.

Time to create page: 0.291 seconds
Powered by Kunena Forum