LUA – Event Counter

Have you ever wondered how many times some event or function is used in a model? Do you have a maintenance interval of 50 events on for example retracts? Well, let’s keep track on them!

Event Counter

Features:

  • 5 counters included
  • Any switch, logical, voice, app etc. can be used
  • Name of counter is adjustable by user
  • Events are stored in persistent memory
  • Events can be manually adjusted from application
  • Counter 1 and 2 can be put to main screen as telemetry windows

Where to get it

Event Counter is included in RC-Thoughts Jeti Tools found here. Event Counter can be downloaded from github here. Installation as any other LUA application. If installed separately application is located in “Applications” -> “Event Counter”.

Configuration of Event Counter

 

After opening the app you are welcomed with configuration screen in traditional Jeti-fashion:

rc-thoughts_tools_106

Rules of usage are simple. Select a switch (any physical, logical etc) for a counter. Every time this switch is ON the counter-number is increased with one. You can also adjust the value of “Current count” manually if you need to.

The windows to main screen are added the normal way, go to “Timers/Sensor” -> “Displayed Telemetry” and add the desired window as usual, here I have renamed one counter to “Autorotation”:

rc-thoughts_tools_312

The size is not adjustable, window will always be displayed in the small version, here with 9 autorotations done on one counter and two flights on the second counter:

rc-thoughts_tools_29

That’s how easy that is!

About counter-numbers

The amount of counter values are stored in persistent memory every time they change, this means when you restart your transmitter etc the values are there. They are not reset when powering off the model for example.

If you have need to alter the event-count for specific counter this is possible from the application.

Disclaimer

Some rules do of course apply!

  • Never use LUA to control a function that would take the model down if misbehaving!
  • Always, always test the function thoroughly!
  • If you do not know, then don’t!
  • RC-Thoughts or myself is NOT responsible for anything this application does
  • Application is free to use (MIT-license) and linking to this page is encouraged!

Now, get out and fly / drive / sail something!

 

3 thoughts on “LUA – Event Counter

  1. Hello Tero
    Your event counter works very well.
    Is it possible to have an alarm after x occurrences?
    Cheers

    Paul

  2. I can add switches to two first counters (same that can be put to main screen). You can have sound on event after that as alarm.

    I'll get on it during the week.

Leave a Reply to Tero Cancel reply

Your email address will not be published. Required fields are marked *