Light Actions are used to either:
- create a logical expression using Variable Data that results in true or false.
- create a simple formula that allows Variable data to be adjusted to display properly
Understanding Logical Expressions
A logical expression can be considered a question. E.g. is that a brown dog, true or false? The question is asked about the Variable assigned in the Light/Disp Data field and the Light Value.
E.g. to create the following question, "is the AUTOPILOT_AVAILABLE Variable equal to 1, true or false?" and if the answer is true, turn on an LED light; set the following fields as:
Light/Disp Data: AUTOPILOT_AVAILABLE
Light Action: ON
Light Value: 1
Note that the Light Value can be any numerical value, it is not restricted to 1 or 0 - its the result of asking the question that returns true or false which in turn will turn the LED light on or off depending upon the Light Action chosen.
Logical Expressions can only be used with LED lights.
Understanding Simple Formulas
Simple Formulas basically add, subtract, multiply or divide the Variable chosen in the Light/Display Data field by the contents of the Light Value field.
For example, to display the altitude as flight levels, set the following fields as:
Light/Disp Data: INDICATED_ALTITUDE
Light Action: DIVIDE_AS_INTEGER
Light Value: 100
The above divides the INDICATED_ALTITUDE Variable by 100 ignoring any decimal places (DIVIDE_AS INTEGER instead of DIVIDE_AS_DECIMAL). Thus an altitude of 10000 would display as 100.
Simple Forumlas can only be used with LED displays such as those found on the GF46, MCP PRO etc.
Logical Expression Light Actions
ON: Turn the light on when the "Light Value" matches that in the Light/Disp Data Variable, otherwise the light is Off.
OFF: Turn the light off when the "Light Value" matches that in the Light/Disp Data Variable, otherwise the light is On.
ON_GREATER_THAN: Turn the light on when the "Light Value" is greater than that in the Light/Disp Data Variable, otherwise the light is Off.
OFF_GREATER_THAN: Turn the light off when the "Light Value" is greater than that in the Light/Disp Data Variable, otherwise the light is On.
ON_LESS_THAN: Turn the light on when the "Light Value" is less than that in the Light/Disp Data Variable, otherwise the light is Off.
OFF_LESS_THAN: Turn the light off when the "Light Value" is less than that in the Light/Disp Data Variable, otherwise the light is On.
BLANK_EQUALS: Blanks the display if the values match.
BLANK_GREATER_THAN: Blanks the display if the Variable in Light/Disp Data is greater than the "Light Value".
BLANK_GREATER_THAN: Blanks the display if the Variable in Light/Disp Data is less than the "Light Value".
IAS_MACH_BLANK: Same as IAS_MACH, except if the values match the display blanks.
IAS_MACH: Will show the value as a decimal when its less than 1 or an integer when its greater. To be used with Autopilot IAS/MACH displays. The logic is built in an no Light Value needs to be provided.
HAS_FLAG: Determines if the all the bits represented by "Light Value" are 1 in the "Light Data". The "Light Value" should equal the sum of the decimal value of all the bits that must be on to light the LED. E.g. for bits 4 and 7, the "Light Value" would be 72 (8 + 64).
Bit Number | Decimal Value | Hex Value |
1 | 1 | 1 |
2 | 2 | 2 |
3 | 4 | 4 |
4 | 8 | 8 |
5 | 16 | 10 |
6 | 32 | 20 |
7 | 64 | 40 |
8 | 128 | 80 |
9 | 256 | 100 |
10 | 512 | 200 |
11 | 1024 | 400 |
12 | 2048 | 800 |
13 | 4096 | 1000 |
14 | 8192 | 2000 |
15 | 16384 | 4000 |
16 | 32768 | 8000 |
Simple Formula Light Actions
ADD_AS_DECIMAL: Add the "Light Value" to the value of the Variable in Light/Disp Data and display with decimal places.
ADD_AS_INTEGER: Add the "Light Value" to the value of the Variable in Light/Disp Data and display with no decimal places.
DIVIDE_AS_DECIMAL: Divide the Variable in Light/Disp Data by the "Light Value" and display with decimal places.
DIVIDE_AS_INTEGER: Divide the Variable in Light/Disp Data by the "Light Value" and display with no decimal places.
MULTIPLY_AS_DECIMAL: Multiply the Variable in Light/Disp Data by the "Light Value" and display with decimal places
MULTIPLY_AS_INTEGER: Multiply the Variable in Light/Disp Data by the "Light Value" and display with no decimal places.
SUBTRACT_AS_DECIMAL: Subtract the "Light Value" from the value of the Variable in Light/Disp Data and display with decimal places.
SUBTRACT_AS_INTEGER: Subtract the "Light Value" from the value of the Variable in Light/Disp Data and display with no decimal places.
MULTIPLYTRUNCATE_AS_DECIMAL: Remove any decimal places from the value of the Variable in Light/Disp Data and then multiply the result by "Light Value" and display with decimal places.
MULTIPLYTRUNCATE_AS_INTEGER: Remove any decimal places from the value of the Variable in Light/Disp Data and then multiply the result by "Light Value" and display with no decimal places.
ROUND: It defaults to rounding the value of the Variable in Light/Disp Data to the nearest integer (whole number with no decimal places). Specifying a "Light Value" between -15 and 15 rounds to the relevant digits. E.g. a Light Value of 2 would display the Light/Disp Data Variable to two decimal places (239.8874 would be 239.89) and a value of -2 would display the Light/Disp Data Variable to the nearest 100 (239 would be 200)