- Messages
- 36
- Country

I'm trying to make a gauge that, when the trim button is pressed, a variable is changed but the trim is not moved. So, this is what I did:
Since I found that the gauge did not react as expected, I tried changing the event for PROP_PITCH_INCR/_DECR:
I removed the opposite trim movement line, since it was no longer required. But still does not react. Did I do something wrong?
Code:
<Element>
<Keys>
<On Event="ELEV_TRIM_DN">
(A:Sim On Ground,bool) ! if{ (>K:ELEV_TRIM_UP)
(L:FBW_ref, number) 0.5 + (>L:FBW_ref, number) }
</On>
</Keys>
</Element>
<Element>
<Keys>
<On Event="ELEV_TRIM_UP">
(A:Sim On Ground,bool) ! if{ (>K:ELEV_TRIM_DN)
(L:FBW_ref, number) 0.5 - (>L:FBW_ref, number) }
</On>
</Keys>
</Element>
Since I found that the gauge did not react as expected, I tried changing the event for PROP_PITCH_INCR/_DECR:
Code:
<Element>
<Keys>
<On Event="PROP_PITCH_INCR">
(A:Sim On Ground,bool) ! if{ (L:FBW_ref, number) 0.5 + (>L:FBW_ref, number) }
</On>
</Keys>
</Element>
<Element>
<Keys>
<On Event="PROP_PITCH_DECR">
(A:Sim On Ground,bool) ! if{ (L:FBW_ref, number) 0.5 - (>L:FBW_ref, number) }
</On>
</Keys>
</Element>
I removed the opposite trim movement line, since it was no longer required. But still does not react. Did I do something wrong?

