Duke (Piston + Turbine) LVAR for MobiFlight
-
Did you set L:var_altitudeAlertLatching to 2? Setting it to zero would cause the behavior you're describing, while setting it to one would cause it to activate and stay activated.
-
Hi, thanks - I already have it set it to '2' because I thought that was correct for RESET (and that's what worked for the Master Warning and Master Caution). So, for the RESET ALT button you're saying I should set it to 1, and not 2?
And if I want a visual display button LED to trigger / flash, should I use the same LVAR with an ON VALUE of 1 (and OFF VALUE of 0)?
-
I just triple checked the code after your original post, and it's definitely
2 (>L:var_altitudeAlertLatching, number)
that should do the trick. It functions no differently than the master caution and master warning. Perhaps a video might help me diagnose?For the LED, you should just check if L:var_altitudeAlertLatching == 1 to turn on the LED, since 0 or 2 are off conditions.
-
Thanks, however what is the 'number' at the end of "2 (>L:var_altitudeAlertLatching, number)" ?
I'm actually using the Pilot Deck plugin in the Elgato, so the coding is just "var_altitudeAlertLatching" and then there is a value assigned for button presses ... I have 2 set for 'ON' and 0 set for 'OFF'. Please see attached 2 pics ... you'll see the exact same principle is used for both the Master Warning and Alt Alert, except the former functions correctly and the latter does not.
-
Thank you for sharing! I think that was actually extremely helpful! I believe it's the "Reset Switch to Off Position after pressed" option that's causing the trouble. If I understand correctly, that means that it will set L:var_altitudeAlertLatching back to 0 after you release the button, which will cause it to trigger and proceed right back to 1. I don't think this would happen with the master alerters, just because of how they get triggered from their respective annunciators, but I would have to check. Although I don't use the Stream Deck, I think it might work perfectly if you just uncheck that box. Either way, please let me know how it does with the box unchecked, as that might give me another hint.
-
Many thanks for looking into it. I'd actually tried deselecting that option a little while back as I'd been thinking along the same lines, but it didn't work. I have now experimented with a number of trial and error options and got it to work, but with a strange setup (although it now works well) ... I simply reversed the setting so now have ON VALUE = 0 and the OFF VALUE = 2. I also had to change the Control States (Output Value), so that ON = 1 and OFF = 0, but 'ON ERROR' I've had to make it display a button that indicates to me I've cleared the alert. So, now I get a warning bar' showing (not flashing though - can't get it to flash) when the ALT ALERT is triggered, then an 'alert cleared' button display until such times as the alert clears itself after whatever the preset timeframe is (5 to 10 seconds). In theory, it wants to display an 'error' during that time because it doesn't recognise it as being on or off.
-
L:BKSQ_ShowCopilotInterior
I'm glad you got the altitude alteter working. I will have to think about why it works with that configuration to see if I have any further suggestions for you.