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! 

05/03/2024 - This forum is read-only

The community support for MobiFlight has moved exclusively over to our Discord server. Register for free and enjoy more interactive functions like image and video upload, voice chat. More than 7,000 registered users around the world make it a great experience!

See you on our MobiFlight Community Discord server.

A HUGE Thank You to everyone who participated in the forum, especially obviously to Pizman and Stephan who did an outstanding job over so many years providing an incredible service to the MobiFlight community.

The forum is still providing a lot of good content, hence we keep this information accessible.

Go to page 1Go to page 112Go to page 3Go to page 2
Avatar
MadTrooper
Posts: 52
HI Pizman82,

I have 2 LED outputs. the first one is for LE Flaps Transit (pin 11) and the second one is for the LE Flaps Extended (pin 12).
I'm using the FSX Default Boeing 737-800.

What I want to do is have the LE Flaps Transit Lit when the flaps are in transit (between the detents)
From what I have read, the LE flaps trans led should go1 on between 0 - 410 and 2048 - 4096 for that particular aircraft.

I'm not sure what offset to use. 30EA 2 or 0BDC 4? is this the formula I should be using ? if($=0,0,if($=410,0,if($=2048,0,1)))

Should I use a config for precondition ?

For the LE Flaps Extended, I would like the LED to lit only when LE flaps are fully extended at value 4096 and to be OFF any other time.


Thanks for your help!
2017-11-01 17:42
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
He wrote it in the 1st comment: P3D
Grüße,
Stephan (Time: UTC+2)
2017-11-01 18:55
Avatar
MadTrooper
Posts: 52
I'm sorry StephanHO, I don't get it. Could you be more specific please. I have been trying to make this work for the last 2 days without any success.:-/

Thanks.
2017-11-01 20:11
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
Do you mean the LE Flaps Annunicators or the Flap-Detents?
Please give me more input with that you have done so far
Grüße,
Stephan (Time: UTC+2)
2017-11-01 21:05
Avatar
MadTrooper
Posts: 52
HI StephanHO, Yes I ment the LE Flaps Annonciator

I have added a output device for the LE Flaps Transit and uploaded it.
I added a output description ''LE Flaps Transit'' then in the FSUIPC base settings I have tried offsets 0BE0 4 and 0BDC 4 without any success,
in the More options I have marked the Transform case and included the following

$=0,0,if($=8191||8192,0,if($=16383||16384,0,1))

I did not put anything in the Compare page;
In the display tab I have choose the board then the type pin in the display setting I have choose LE Flaps Transit and tested the LED and it works.
I didn't put anything in the Precondition tab.

This is where I'm at right now. When I get this to work Then i'm going to configure the LED on my LE Flaps Extended for it to lite when the LE Flaps are fully extended.

I really appreciate your help.

thank you very much!
[Last edited by MadTrooper, 2017-11-01 21:41]
2017-11-01 21:29
Avatar
MadTrooper
Posts: 52
HI StephanHO,

I think that I am pretty close to achieve this.

I have made a config to read out the LE Flaps value with offset 0BE0 4

I have inserted the following formula in the FSUIPC transform window: if($=0,1,if($=410,1,if($=819,1,if($=2048,1,if($>2049,1,0))))) of the LE Flaps in Transit config;

and added the LE flaps in transit readout config in the Precondition page and chose, if current value is =0

I can now see the values of the inputs and output that seems to be all good but the LED is turning ON when flalps are moving and stays ON until Flaps are up.

Do you have any clue about the problem?

Thanks
[Last edited by MadTrooper, 2017-11-02 03:42]
2017-11-01 23:26
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Holly Crap ! It feels like i give you a loaded Gun.... But i not explane you how to use it :P

I´m happy to see you read my examples but you not use it in correct form..... Your on right way.... but some parts make no sence.

****
Lets start at beginning..... WHAT Exactly do you need.... I think we realy talk about LE Flaps. (The Leading Edge Kruger Flaps on the FRONT of Wings.... NOT the Real Flaps)
In PMDG for example it´s verry easy cause we got a own offset for the LE Flaps Transit/Extended LED Annunciator..... In Standard Aircrafts we need to bild this ourself.


Here we got 2 posible Ways.....
1. We only show a logical Output. here we simply say the LE Flaps are extending while Flaps are going from 0-1 and from 5-10.
In that case we NOT show the real LE Flaps situation.... We just show a calculated situation.
The Problem here...... The LE Flaps NOT work 100% simmular....
For Example the LE Flaps start extending not same time like Main Flaps..... If you Run Flaps from 0 to 1 then Normals Flaps started but the LE Flaps are light up some seconds later.....
AND They still run a bit longer like the standard Flaps i think.... The Needle is still at 1 in Display but LE Flaps are already extending for 1-2 Seconds longer.
That Means.... We can use Offset 0BE0 BUT we not have a 100% realistic situation
( I Think thats OK for you.... But NOTE Then the Lights not work with realistic durations ! )


2 Alternate you can use Offsets 30E8, 30EA ..... I not try out myself until now but THIS should normaly show the REAL 1:1 LE Flaps situation !
This is much advanced and for a 100% Solution we need own code, too.

Finaly you need to decide youreself what you need.... Just a good "Fake" Output that looks like real or do you need a realistic situation ?
( Without malfanctions i think the first one is enough )

*****
Now about the IF Function.

Please tell us exactly WHAT you like to show !
From your posted stuff i not see exact the logic.

My Information for "B737 800NG": ( If we work with indication of Standard Flaps and NOT via the REAL LeFlaps Offsets)
LE Flaps Transit will light up, when Mainflaps are run from 0-1, 5-10 and backwards from 10-5 and 1-0
LE Flaps Extended will Light if Mainflaps are 1 or higher BUT NOT when a transit is in progress.... So it not light between 5-10 or 10-5 .
Hope you got same logic. If Yes the follow is the key.....

You need to find out the Offset Value of Flaps positions 1 , 5 and 10
I´m not on my Flightsim PC so you must look youreself..... i just use Placeholder FLAP1 FLAP5 and FLAP10 now..... Please insert the VALUE yourself instead of this text.

LE Extended : if($<FLAP1,0,if($>FLAP5&&$<FLAP10,0,$))
This Means..... If Value is less then Flap1 Value its OFF .... If Value is between Flap5 and Flap 10 Value its OFF, too.... Else it´s ON

LE Transit: if($>=FLAP1&&$<=FLAP5,0,if($>=FLAP10,0,$))
This Means Value is 0 at Flaps IN ... It is also 0 At Flaps1 until Flaps5 and its again 0 at Flaps 10 and bigger.... Only light now between 0-1 and 5-10 and reverse.

I Read it back 3 times.... i hope i not miss anything or type a issue..... Please try out and report experience!
Good Luck !
2017-11-02 09:17
Avatar
MadTrooper
Posts: 52
HI Pizman82, wow what a good explaination. I'm learning good stuff thanks to you. Thank you for taking the time to explain and help me with me trying to find the solution of what I'm trying to do.

iconQuote:

LE Flaps Transit will light up, when Mainflaps are run from 0-1, 5-10 and backwards from 10-5 and 1-0
LE Flaps Extended will Light if Mainflaps are 1 or higher BUT NOT when a transit is in progress.... So it not light between 5-10 or 10-5 .
Hope you got same logic. If Yes the follow is the key.....



Yes to that. I'm following the same logic. I'm using Offset 0BE0 and the values for FLAP1 is 410, FLAP5 is 2048 and FLAP10 is 4096.

I will try to solve my fake LE Flaps in transit Announciator first.

For this I have made a LE Flaps in transit config
On the FSUIPC tab offset is 0x0BE0 value type is Int size in bytes is 4. mask value is 0xFFFFFFFF no mark in BCD case.
Under more options I have inserted the following:

if($<410,0,if($>2048&&$<4096,0,$))

Under the display tab the MF board is selected and use type of pin. Under Display settings, Pin: LE Flaps in transit is selected and the LED will light when testing the current setting.

There is no precondition.
_________________________________________________

The result

The LE Flap Announciator will light at Flap1 and will stay ON until FLAP5 is reached and stays ON.
It will turn OFF leaving Flap5 until it reaches FLAP10 light again and stays ON for all the travel and flaps above Flap 10.

When retracting the FLAPS

Announciator is ON and stays ON until it reaches Flap10 and Stays ON at flap10. Then turn OFF and ON again at FLAP5. It will then stay ON until it reaches Flap1 then turn OFF travelling to FLAP UP and stays OFF.

In the FSX Default Boeing 737-800, There are Flaps 1, 2, 5 and 10.

Do you know if your formula is ok or should it be changed since there is also Flap2 with the offset value of 819. ?

Thanks for your great help again Pizman82. Its appreciated.

MadTrooper
2017-11-02 19:31
Avatar
MadTrooper
Posts: 52
HI Pizman82, COOL, with your logic I was finally able to make it work the way I wanted it.

Here is the formula I'm using: if($>10&&$<408,1,if($>420&&$<814,1,if($>822&&$<2045,1,if($>2050&&$<4093,1,0))))

With it, here is the result,

Using the same offset 0BE0, and the offset values for Flap1=410, Flap2=819, Flap5=2048 and Flap10=4096

Between Flap UP and flap 1, Announciator is ON and OFF at Flap1;
Between Flap1 and flap2, Announciator is ON and OFF at Flap2;
Between Flap2 and flap5, Announciator is ON and OFF at Flap5; and
Between Flap5 and flap10, Announciator is ON and OFF at Flap10.

This is really working well and now moving on to solve the LE Flap extended which will be really easy for me to do.

I want to Thank you very much for your great help.

MadTrooper
2017-11-02 20:22
Avatar
MadTrooper
Posts: 52
HI Pizman82, here is my solution for the LE flaps extended

Still with offset 0BE0

if($=410,1,if($=819,1,if($=2048,1,if($=4096,1,if($>4098&&$<16384,1,0)))))

as a result

LE Flaps Extended Announciator will be

- OFF at Flaps UP, turn ON at Flap1; then
- turn OFF between Flap1 and Flap2 then turn ON;
- turn OFF between Flap2 and Flap5 then turn ON;
- turn OFF between Flap5 and Flap10 then turn ON; and
- Stay ON between the travel and at all above Flaps and stay ON at Flaps DOWN.

On reverse
-Stay ON between the travel and ON at Flaps 10;
- turn OFF between Flap10 and Flap5 then turn ON again;
- turn OFF between Flap5 and Flap2 then turn ON again;
- turn OFF between Flap2 and Flap1 then turn ON again; and
- turn OFF between Flap1 and Flaps UP then Stay OFF.

Thanks again for your help Pizman82.

MadTrooper
2017-11-02 21:28
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
First i´m glad i could help you ... And it workes finaly!

About your technic..... Thats a bit difficult ( Its possible to make it easyer with shorter functions..... but who cares! )

About your system....
Thats why i ask you HOW it should look like.

I must say i not work with LE Flaps before yesterday and learn this stuff just to help you..... My information is from the PMDG B737
THERE it is like i explane above....
In the PMDG the LE Flaps NOT Move between Flaps 1 to 2 and NOT move between 2 to 5 ....
The Only LE Flaps Action is while 0-1 (shortly before reaching 1) AND between 5 and 10 ( Shortly befor reaching 10)
Reverse the Transit LED Light up when you move from 10 to 5 instaly and light aslong nearly befor reaching 5 ....
Same when moving from 1 to 0 .... After leaving 1 the Transit LED lights until Flaps are in.
There is again lo Transit light shown between flap 5-2 or 2-1 .

The Extended Green LED light Always at flaps 1 or higher and if no transit is in progress.
THAT MEANS:... It light in LE Flaps Position A ( After reaching FlapsFlaps 1 until Flaps5) and light again all the time at Flaps10 or more ( LE Flaps Full Extended Position B ) .
WHAT LE Flaps Position is currently set you can see in the Butterfly indicator in the Overhead ! Look like there exist only 3 Status... IN, HALF and FULL... No Stepps between 1 and 5


Summary.... If you enjoy it like you build it then its ok and fine..... I just think THAT is not 1:1 like in real.... Pretty shure the PMDG simulate this verry real and correct !
[Last edited by pizman82, 2017-11-03 04:46]
Good Luck !
2017-11-03 04:41
Avatar
MadTrooper
Posts: 52
HI Pizman82, thanks for your explaination again and yes I realised that my fake LE Flaps announciators are not acting like they should according to PMDG Boeing 737 and I will make the change to reflect that but now that I know what I'm doing it will be really easy. :)

Thanks again for your great support.

A Mobiflight lover! :love: lol...

MadTrooper
2017-11-03 19:54
Avatar
les
Posts: 21
hi,

did you manage to get it working? I'm not an expert but got the same led's working for fs2004 after help from these guys
on the forum, happy to post what I did step by step if it helps?

les
2017-11-21 14:03
Avatar
kbumbaz
From: Nice, France
Posts: 15
Hi all,

I share my solution here for Bonanza.

  • I use only left flaps position for LED indicator
  • I don't consider flaps position to be fixed, I take consideration of a few variation of the position value. (+/- 3 units)


iconCode:
Flaps apr 0x0BE0: transform: if($>=6550,if($<=6555,1,0),0)
Flaps down 0x0BE0: transform: if($>=16380,if($<=16385,1,0),0)
Flaps transit (which is opposite of both previous + 0): 0x0BE0: transform: if($=0,0,if($>=6550,if($<=6555,0,if($>=16380,if($<=16385,0,1),1)),1))


Tested on the corner of the table works. And in Excel.
If simplification can be done please follow up on my answer.

bye all
K.
2020-12-01 11:43
Avatar
djw4250
From: Napier, New Zealand
Posts: 30
Supporter
@kbumbaz.
Thank you for your contribution.
iconQuote:

Flaps transit (which is opposite of both previous + 0)


Can I please ask what you mean when you write the '+ 0' in your parentheses?
Regards
David
D J Wilkinson
2023-10-02 03:19
Go to page 1Go to page 112Go to page 3Go to page 2