Duke (Piston + Turbine) LVAR for MobiFlight
-
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.
-
I'm encountering an issue where I've assigned the K:AP_PITCH_LEVELER_ON to my personal VS AP button (to switch to ATT mode), however when I do that GA lights up instead on the AP panel. Is there an error here in that VAR?
Also I don't understand how/why there is a AP GO-AROUND MODE (AUTO THROTTLE to GA), because I didn't think the Duke had any kind of auto throttle?
-
K:AP_PITCH_LEVELER_ON should do the trick, but it's possible that pressing it a second time in some circumstances could result in what you're seeing. Unfortunately, the MSFS variable to detect when go-around mode is activated is broken, so I've had to do some of my own process of elimination for the GA indicator. Looking at my code, I can see many questions I could ask in an attempt to get to the bottom of this, but let me start here: Is the pitch control mode working when you adjust the target pitch with L:var_AP_PitchKnob?
The Duke has no auto throttle, but the go-around mode can be used to position the flight director at 8° nose up with wings level for initial climb out.