Use of Arrays

Help creating logic scripts for Air Manager Instruments

Moderators: russ, Ralph

Post Reply
Message
Author
tomlithgow
Posts: 60
Joined: Sun Jun 12, 2016 3:11 pm

Use of Arrays

#1 Post by tomlithgow »

I am new to Air Manager and to Lua, though I've programmed in several other languages over the years.

I am developing a Bendix King KLN94 GPS instrument. As well as a moving map, this has many pages of useful information (in excess of 70) though I'm not thinking of reproducing all of them. The pages are arranged in 10 "chapters" which are selected by rotating the outer GPS knob and pages in chapters by rotating the inner knob.

To avoid loads and loads of conditional statements, I had thought that the graphics of individual pages could be grouped together and made visible when the page was active and to do this, the group id's could be stored in a 2 dimensional array the first dimension being the chapter number and the second the page number.

My knowledge of array handling in Lua is not well developed....anyone out there got experience? Can group id's be elements of an array?

Post Reply