EdgeTX / edgetx-sdcard

SD Card contents and images for EdgeTX
129 stars 41 forks source link

Horus widget flights count #67

Closed offer-shmuely closed 2 years ago

offer-shmuely commented 2 years ago

wiki-page:/offer-shmuely/edgetx-x10-widgets/wiki/FlightsCount

Horus Widget that count number of flights

widget assume the following:

state machine:

view of the widget on the Top Bar

image

view of the widget with debug mode on

image

image

To change the existing number of flight, edit the value of GV9

FlightCount2

FlightCount3

MadMonkey87 commented 2 years ago

Now where we have more and more widgets we should consider the guide here: https://luadoc.edgetx.org/part_iv_-_advanced_topics/lua_data_sharing_across_scripts

Note that even if you do not use the widget, it will consume memory as long as it is installed. So I strongly suggest to split up the script into a "main" part and a "loadable" part that actually does the job. This ensures much less memory is consumed if you do not want to use the widget

pfeerick commented 2 years ago

I really like this widget already, but also have a couple of suggestions / requests for future enhancement possibilities ;)