#Search Specific Events A320 Stock and FBW
1 messages ยท Page 1 of 1 (latest)
Is there a reason you aren't using the FBW A320 or the Fenix A320? I believe we have many more events for those planes since the vast majority of pilots fly them instead of the stock A320
We have 15 events for the stock plane, over 600 for the FBW, and almost 2000 for the Fenix version
The fenix has a cost, so I wouldn't want to take it, I used and am using the FBW but even there, many things are missing or I find them as Toggles and not as switches, in this way with non-momentary switches it is a problem.
Can you post the event name for one of the FBW events that's a toggle and not a switch? I can take a look
usually they are pretty easily converted to separate on/off events
A32NX_OH_APU_BLEED_TOG For Example
Perfect, thanks. Yes, that's very easy to make an on/off instead of a toggle
I'm using it by creating 2 switches and setting a condition on one of the 2, but in this way many things split
yeah, you can make it easier with custom code (or someone can add hubhop events). Just make a normal button and in on press check the show code box and put this custom code in:
1 (>L:A32NX_OVHD_PNEU_APU_BLEED_PB_IS_ON, Bool)
For on release put this:
0 (>L:A32NX_OVHD_PNEU_APU_BLEED_PB_IS_ON, Bool)
If you look at the event code for the toggle it looks like this: (L:A32NX_OVHD_PNEU_APU_BLEED_PB_IS_ON, Bool) ! (>L:A32NX_OVHD_PNEU_APU_BLEED_PB_IS_ON, Bool). It's taking the current value of that setting, inverting it, then saving it as the new value. All I did was get rid of the first part and replace it with an explicit 1 for on and 0 for off.
My guess is most/all of the toggle events are the same pattern and you'd be able to do similar custom code to get separate on/off
Some of them look a little more complicated. I'm not an expert in the a320 though, never flown it, but in general it is always possible to make new events for on/off instead of toggle, it just might take some work
I'll make a few attempts and update you, thanks for now.
Another thing, is it possible to have in real time a list of events that change from time to time to find the right one more easily?
I don't worry about a bit of work, I'm now at hundreds of hours ๐
hahah, we are all there ๐
There's no way to get a list of changed event announcements. Events are pretty stable, it's usually just additions based on questions like yours to fill in gaps in the event list.
is it then possible to add them once i have done all the work of identifying the toggles and made them switches?
Yes absolutely. Hubhop is all community driven, you can add the new events yourself after you've verified they work
Ok, for this event?
1 (>K:APU_GENERATOR_SWITCH_TOGGLE)
hahahaha noooo that's a painful one ๐
A32NX_OH_ELEC_APUGEN_TOG
so the trick with events like that is you have to figure out if the aircraft offers an alternative event that let's you set the value directly (1 for on 0 for off). If not, you have to see if there's an underlying variable that tells you the current state so you can test it and only call the toggle event if it needs to be switched on/off
then creating conditions for execution, like if the light is on turn it off, otherwise leave it on?
Unfortunately I don't have that plane so I can't assist with that specifically. I think @trim patio knows the plane though and might be able to help next time he's online
yes exactly right
I was already doing this, but it creates panic ๐
It would be something like to turn the generator off if it is on:
(A:APU_GENERATOR) if{ 1 (>K:APU_GENERATOR_SWITCH_TOGGLE) }
I made up the first part, I have no idea what the variable is that holds the current state
And something like this to turn it on if it is off:
(A:APU_GENERATOR) ! if{ 1 (>K:APU_GENERATOR_SWITCH_TOGGLE) }
it's a pretty common pattern with events we've had to use many times. the trick is figuring out the state variable. You can usually use the developer tools to get it, see my blog post as a starting point: https://www.badcasserole.com/uncovering-input-events-using-the-msfs2020-model-behavior-dialog/
IT'S OK?
if you have that it means you already know what the generator state value is
what is your output config for APU GENERATOR ATTIVO?
APU GENERATOR SWITCH
(A:APU GENERATOR SWITCH,Bool)
Yeah, that's all you need then. You can do this for OnPress:
(A:APU GENERATOR SWITCH,Bool) ! if{ 1 (>K:APU_GENERATOR_SWITCH_TOGGLE) }
and this for OnRelease:
(A:APU GENERATOR SWITCH,Bool) if{ 1 (>K:APU_GENERATOR_SWITCH_TOGGLE) }
No need for a precondition
Ok, I'll try ๐ Thanks again!
let me know if it works!
it is possible to do:
(A:APU GENERATOR SWITCH,Bool) & (A:APU GENERATOR SWITCH2,Bool) ! if{ 1 (>K:APU_GENERATOR_SWITCH_TOGGLE) }
?
For example I added the 2
Yes but it is rpn so your ordering is wrong
The & has to go after the two things you want to and together, and I'm not sure if it is & or and or AND
(A:APU GENERATOR SWITCH,Bool) (A:APU GENERATOR SWITCH2,Bool) && ! if{ 1 (>K:APU_GENERATOR_SWITCH_TOGGLE) }
no work, output is (A:GENERAL ENG MASTER ALTERNATOR:1,Bool) and input is (>K:TOGGLE_MASTER_ALTERNATOR)
๐ฆ
Ok Work ๐
(A:GENERAL ENG MASTER ALTERNATOR:1,Bool) ! if{ 1 (>K:TOGGLE_ALTERNATOR1) (>K:TOGGLE_ALTERNATOR2) }
woohoo!
you have unlocked the magic ๐
When you are using if just be really careful, no space between if and {
I've been burned by that before. It must be if{ not if {
I saw it a while ago ๐
Can I add if and not?
For example I'm doing external power now, I had something like this in mind but it doesn't work:
(A:EXTERNAL POWER AVAILABLE:1, bool) ! if and (A:EXTERNAL POWER ON:1, Bool) 0
(>K:TOGGLE_EXTERNAL_POWER) } }
You mean if/else? Yes
if{ do this } els{ do this instead }
the RPN doc I linked to above has all of this and more it's worth reading through
Ok, i read this documenti
I'm reading
for example
(A:EXTERNAL POWER AVAILABLE:1, bool) ! if and not (A:EXTERNAL POWER ON:1, Bool) 0
(>K:TOGGLE_EXTERNAL_POWER) } }
Can you please explain in words the logic you wish to accomplish?
Surely.
I'm configuring the external power switch, and I want to configure it like this:
At pressure:
If External power is available, but not turned on, turn it on
Upon Release:
If external power is on and not avail, turn it off.
I hope I made myself understood
I think you will want the on release to turn external power off regardless if it is available or not.
In other words, if external power is available and you turn the switch to off, shouldn't external power be turned off?
Assuming the variables are correct... Try this for on Press
(A:EXTERNAL POWER AVAILABLE:1, bool) (A:EXTERNAL POWER ON:1, Bool) ! and if{ 0 (>K:TOGGLE_EXTERNAL_POWER) }
Not sure about that 0 before the K: toggle event
Let's say yes, if I turn off the switch it must turn off the external power whatever its state, but if it is off and I turn off the switch "pretend I turned it off from the GUI" in that case I turn it on if I don't put if
What you sent me works perfectly for activation, now I try to do something for deactivation.
Ok, work! ๐
For Press:
(A:EXTERNAL POWER AVAILABLE:1, bool) (A:EXTERNAL POWER ON:1, Bool) ! and if{
0
(>K:TOGGLE_EXTERNAL_POWER) }
For Release:
(A:EXTERNAL POWER ON:1, Bool) if{
0
(>K:TOGGLE_EXTERNAL_POWER) }
This for Community
Good morning
thanks for the information
Hello aviators...I've searched quite a bit and watched the intro videos for mobiflight, but I can't get my MSFS FBW A320 (stable) to set the push/pull option on my Honeycomb Bravo...is there a step-by-step guide/video somewhere in here?
Have you searched in https://hubhop.Mobiflight.com
how do you intend to do the push and pull in your Bravo?
Stimulated push/pull with the buttons... Isn't that possible with mobiflight, FSUIPC and the Bravo?
"simulated" ๐
ok, but what does it mean simulated push pull?
you can only push, so how would you like to do the simulated pull? I ask because there can be more than one way to do this.
I do press = push; long press = pull, but I don't have a Bravo
I just checked hubhop (thanks btw) and there already made presets to push/pull the various selected/managed (HDG, ALT, SPD, VS)...I can see them in the mobiflight presets/code, I just don't know how to make them work. I assume I should be able to press a bravo button and it'll set the opposite...if it's "pushed" then it'll be set as "pulled" with a press and vice-versa? I just learned about mobiflight and watched some of the intro videos and it seems possible. I'm hoping it's actually fairly simple once I learn how...
the push or pull in the name just refers to the virtual cockpit action... you can assign any event to any button press. Mobiflight should be able to detect your Bravo and offer its lights, buttons and axes for you to program in the input and output configs.
the standard action is just when you press a button, the bound event gets executed. That's it.
You will find some events for the A320 autopilot that will toggle between managed and selected mode with each successive press of the same button. Those are non-standard behavior, but have been included for the Mobiflight users convenience.
Yes, something that simple is all I need so I don't have to keep grabbing for the mouse to do it...I just can't get it to work. Do I set the events in mobiflight without MSFS running, save then run it in mobiflight, then start MSFS?
it doesn't make any difference if MSFS is running or not to configure MF
@grim wigeon can you start a new thread for this in #1028408626643214336 since it isn't related to the original one you replied to? Include screenshots of how you configured your input
sure