Zeiten
Resource contributor
- Messages
- 444
- Country

Hi!
Can't get this code to work correctly.
The light should go on when either;
1. Test switch is pushed (working)
2. Detects difference in flap position.
It works when the left flap fails, but not when the right fails.
Any thoughts guys?
Cheers
Daniel
Heretic: NOT sent from my HTC ONE using Tapatalk
Can't get this code to work correctly.
The light should go on when either;
1. Test switch is pushed (working)
2. Detects difference in flap position.
It works when the left flap fails, but not when the right fails.
Any thoughts guys?
Code:
<Value>
(A:ELECTRICAL MASTER BATTERY, bool)
(L:CC Switch Flaps Unbalance Triggered,enum)
and
if{
(A:TRAILING EDGE FLAPS LEFT PERCENT, percent) (A:TRAILING EDGE FLAPS RIGHT PERCENT, percent) >
if{ 1 (L:CC Switch Flaps Unbalance Triggered,enum) }
els{ 0 (L:CC Switch Flaps Unbalance Triggered,enum) } }
els{
(A:TRAILING EDGE FLAPS LEFT PERCENT, percent) (A:TRAILING EDGE FLAPS RIGHT PERCENT, percent) <
if{ 1 (L:CC Switch Flaps Unbalance Triggered,enum) }
els{ 0 (L:CC Switch Flaps Unbalance Triggered,enum) }
}
or
</Value>
Cheers
Daniel
Heretic: NOT sent from my HTC ONE using Tapatalk


