#Preset for Terr OnND FO
1 messages · Page 1 of 1 (latest)
see here for presets - https://hubhop.mobiflight.com/presets/?search=terrain+on+nd+fo&vendor=FenixSim
HubHop is an API which consolidates Microsoft Flight Simulator 2020 variables and events and provides unique, understandable and standardized events and variables.
i've assumed fenix a320 with that
No, this preset does not work with this button.
ahh looks like the handling of that has changed at some point. is your button momentary or latching?
Momentary
ok assign this for both on press and on release (L:S_MIP_GPWS_TERRAIN_ON_ND_FO) ++ (>L:S_MIP_GPWS_TERRAIN_ON_ND_FO)
you need the ++ between the lvars
Thanks, bro, it's working now.
no worries
And how to make it duplicated immediately on Terr On ND Capt?
I think we need to change this code. If we use the same code for both press and release, the button will go out of sync with Auto-Retrigger.
Maybe add 2 instead of 1 and only use press.
Alternatively, check in the on release if the value of the Lvar is odd and only execute the code when true.
🤔
it will work ok, but if you use auto-retrigger the button will be pressed because that is what the code is telling the sim to do.
Okay, we need to experiment, it's already late at night, my head stops working.. I'm going to sleep it off
I would suggest something like this modification for the on release event...
(L:S_MIP_GPWS_TERRAIN_ON_ND_FO) 2 % 1 == if{ (L:S_MIP_GPWS_TERRAIN_ON_ND_FO) ++ (>L:S_MIP_GPWS_TERRAIN_ON_ND_FO) }
so the button release code is executed ONLY if the value of the variable is odd, which means the on press event was executed first.
Should this be written in the Release section?
Or in the Press section?
only on the on release event (as I indicated)
when auto-retrigger tries to execute the on release event, the value of the Lvar is even, so nothing is executed.
ok assign this for both on press and on release (L:S_MIP_GPWS_TERRAIN_ON_ND_FO) ++ (>L:S_MIP_GPWS_TERRAIN_ON_ND_FO) And leave it in the Press section, right?
Assign that ONLY to the on press. It makes it very confusing what you mean when you don't edit the original text.