MobiFlight Community Support

Welcome to the forum for MobiFlight! Feel free to reach out to the community in case you have questions, issues or just want to share great ideas or details about your latest home cockpit project.

You like MobiFlight? Donate via PayPal and support the MobiFlight development. Thanks! 

icon
Avatar
hrings
Posts: 103
I have problems with the fire Handles.
I have tried to program both with PMDG Event ID and FSUIPC offsets but unable to get the handles on the screen to react when I pull the handle on the hardware..
The same goes also for the discharge L and R they dont move.
Any tip on how to program?
By the way I have 2 error codes when running but dont know if they are related to this

8/29/2020 11:25:02 AM(804): Error on config execution. Object reference not set to an instance of an object.
8/28/2020 5:46:59 PM(364): Error on config execution. Object reference not set to an instance of an object.
Any explanation to what this means.
HenningR
2020-08-29 13:12
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 4339
Supporter
Hi

Not sure but it sound you selected a "placeholder" in a config that is maybe no longer exist.... Or you use a Formula like "if(a=1,0,$)" but forget to define "a" to a config.
Please check your configs ( Mostly the one that stop the system.... You see at first startup in the column "FSUIPC Value" what configs still run already and what configs won´t run in case of the Error Stop..... So mostly the first config without a value Entry or the config before is the "broke" one.

About the PMDG..... Here i need to know your Hardware..... Is there also a input for the Pull ( like a spring loaded button or so) OR is the Pull just a "dummy" and the hardware switch is just a Rotary switch ?
Tell me what functions you have simulated.... then we can check what Events need to be used.
Good Luck !
2020-08-30 01:21
Avatar
hrings
Posts: 103
When it comes to the fault codes the program runs normally without stop it just tell about an config execution failure.
if you unhatch the correct one as active will the error then disappear ??

Fire handles:
Build panel connected via mega 2560:. Lifting the handle out of lock position it operates a normal switch (on/off) when turned to the left or right it operate a microswtch when it is in eiter position.
I have tried with OFFSET 65AD, 65AE and 65AF and PMDG event 70608, 70609 and 70610 but also the 70329,70330, 70331, 76603, 76613, and 76623 for the left/right discharge
HenningR
2020-08-30 14:36
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 4339
Supporter
HI Again.

A stop in normal procedure occures only if the config is active. BUT at beginning when you load Mobiflight itself it will check the "whole" config. Here also inactive configs get checked.
If there is a issue there it can occure in crashing of Mobiflight.
I not know if Sebastian change this in 7.9.0 so we get no crash and only a error message.
Whatever..... The logic and solution is easy.... Always try to have a Config without any issue. If a config is disabled by the user it is not needed..... So you can also delete it. OR if you need it in the future and you like to keep it..... then get sure it is working correctly !

***************
About the Fire Panel. I not do it myself but your system sounds good.
As you know.... Inputs are EVENTID Only in PMDG..... So your 3 Offsets are just to check the Virtual switch or to make preconditions if needed.... But ALL Inputs must be done with EventID !

Also the ID´s looks good. All you need to do is testing now.
Use Left and Rigthclicks.... Or try to work with parameters.... Here you need to test 0,1, 2,3,4,.

I can only test in PMDG737"u" on P3Dv4


Here the Firehandle is blocked aslong you not use the unlock button. So if you press it ( Leftclick on Event 70608) you got 1-2 seconds until it release by itself again. In this time you can Pull the "Bottom" of the handle out of Locked position into UP.
If your panle got this unlock button you can use it..... If not you must include this command in the "pull" Situation.... So your Switch that detect pulling up the handle must send at first a command to this "unlock Button" and behind it must send the command to the bottom switch for pulling out.
On first view without testing i will say parameter for the handle is 0=DOWN 2=UP 3=LEFT 4=RIGHT
NOTE: Maybe this is more tricky and you can ignore the unlock system by directly write parameters. You need to test it !


Summary: Those Handle is advanced. If you build it perfect you need a blocking mechanic with a solonoid and a spring that avoid it of using until you press the unlock button.
Here the question is how your hardware handle this.... Does it have a mechanical blocking system ?
Good Luck !
2020-08-31 11:27
Avatar
hrings
Posts: 103
Thanks.
Yes it is mechanicly blocked in the down position. If you lift the handle up then it is free to rotate.
At the same time as you are lifting the handle up it is operating an off/on switch. Rotating left operate one microswitch and right an other one.
Whatever I do I got no action on the screen when operating the hardware so therefo the questions: what am I doing wrong in programming.
Lights in the handles is ok in test positions.
If I just use the screen panel of PMDG I can only lift it for 1 sec then it return down. I am unable to discharge (left/right)
In the pages of event ID they say Top and Bottom might that be left right
HenningR
[Last edited by hrings, 2020-09-03 11:52]
2020-09-03 10:58
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 4339
Supporter
Hi Sorry i overread this.

We missunderstand each other i think.

Your "blocking Mechanic" as i understand you just block the Turning to left/rigth aslong the switch is DOWN. But if i understand correct you can Pull your Handle UP without any blocking mechanic. In the PMDG ( and as i know also in real aircraft) it is not possible to Pull this handle directly. You need to "unlock" the handle by pressing a little Button located BELOW the handle itself in the Panel. This Press "unlock" the Handle so you can Pull it..... and Sure only if it is pulled then the turning mechanism is unlocked, too.

The solutiion i already tell you above..... In case your Panel have no "unlock button" ( as you say i think) you must "dummy" it .
Create TWO Input Configs directly in a row. BOTH use the Button that tell us if Handle is UP or DOWN. ( Pretty sure 1 if UP and o if DOWN)
The first Input must write the EventID from the Unlock switch (E.g. Left Engine 70608 ) Parameter i think leftclick single. (Maybe 1 you must try)
The second config finaly do the Pull..... You use EventID for the Bottom Handle e.g. Left Engine 76603. Parameter maybe 1/0 Or Left Rigthclick for Press/release. Find Out !
So.... The Pull of Handle occure at first in a press of the Unlock Button and directly behind in a "pull" of the virtual handle ( that is hopefully unlocked meanwhile)

The Turning itself is finaly pretty sure EventID for "Top Handle" Left Engine e.g. 70329

Please try out again!
Good Luck !
2020-09-06 01:08
Avatar
hrings
Posts: 103
Again a cry for help. I am totally bewildered.
After your last tip i came a bit further but:
I have programmed as flw and c mens custom parameter, mrs/mls is mouseright single/left single and last after the / is on release
Left release 70608 c 1/0
Lift 76603 c/mls
dis Right 70326 mrs/none
dis left 70326 mls/ none

If all programmed similar Left eng lifty handle and goes directly to left discharge if turning handle right it is ok

On APU I can see the release button been pressed mut no movement of handle.
If I here use for Lift 76613 and MRS/MLS then the handle on screen is lifting and when turned to the left it is ok but no movement to the right.

Right eng is the same as for APU (have to use mrs/mls ) to be able to lift handle, but here no movement left/right at all.

I have tried all the combinations that I can think off for the parameters but unable to find any solution.
Do you have any more tips up in your sleeve

HenningR
2020-09-11 12:02
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 4339
Supporter
Hi
Sorry That all is confusing me a bit.

Best way would be to do this on Discord. So we can directly figure out. But today i need to work. Next week i´m free in my job.
Please check when i´m online and whisper me.

Alternate. In my holliday i will try to build this myself for testing. Then i can give you a detailed guide.
Good Luck !
2020-09-11 12:15
icon