#FBW A320 landing Gear Led Transit

1 messages ยท Page 1 of 1 (latest)

broken timber
#

Good morning

Google Translate

I try to reproduce the tutorial

https://youtu.be/98sx64YF4h0?t=1164

for the left gear green Led it works

on the other hand for the red led transit

I have an error message
input string was not in a correct format
Did the syntax change?

If you have a link to understand the syntax

I would like to make it work like in the video

I saw the tutorial on Github, but that's not my goal

I want to understand the video

THANKS

In this tutorial you will learn how to configure a landing gear switch and landing gear indicator lights for MSFS 2020 using MobiFlight.

The tutorial explains some cool tips and tricks for your next project:

00:00 Introduction
01:06 Tutorial Overview
02:23 Device configuration
05:24 Test Basic Setup
08:06 Configure the switch
10:34 Configure t...

โ–ถ Play video
#

FBW A320 landing Gear Led Transit

broken timber
hallow wren
#

Just for info, sometimes you need to set 99 to work it okay, because parked Cold/Dark airplane have not 100% extended.

broken timber
#

it doesn't change anything

hallow wren
#

Main config

#

For EXTENDED

#

For in TRANSIT

#

Just for case, are we speaking about annunciations?

broken timber
#

I made a mistake

I have to check

#

If I am the video

it's like this with test at 99 as you told me

#

Just for case, are we speaking about annunciations?

#

yes

#

Transit Red light

hallow wren
#

I'm not using Transform, it's working fine with Comparison

hallow wren
broken timber
#

I just redid the test with > 99

It does not work

calm vessel
#

Let me shortly check.

#

The message looks like a syntax error. Please for testing.... enable the Transform, delete the entered formula and then disable the transform again.

broken timber
#

identical problem

calm vessel
#

hhhm.
Disable Compare just for testing.

broken timber
#

disable compare

calm vessel
#

let me check on my sim,

broken timber
#

new config

calm vessel
#

I think i got the problem....

#

remove device for testing.... So deselect the Bravo LED.
Lets test the config only within Mobiflight.

hallow wren
#

Try for the transit / red this...

calm vessel
#

@hallow wren Problem is different

#

Lets wait for confirm if it work without device.
I expect it will !

hallow wren
#

I see, @broken timber is doing this for Honeycomb and not just simple LED connected to board... maybe here is the issue

calm vessel
#

Yes. thats what iยดm think
I test it on my computer with No device and LED Device. Both work as it should.
The only difference to Scorpios setup is the Bravo.
Maybe there is a limitation in Code that Bravo LED not accept Float Values.

hallow wren
#

Then > 99 / 0 / 1 can work...

broken timber
calm vessel
#

Badly without own a Bravo i can not test myself these "HID Output" Situation.

broken timber
calm vessel
#

Does it count up 0-100 and 100-0 without stopping ?

#

just check the right column while move gear in sim Up and down

#

And sure.... At 100 it must show 0

broken timber
calm vessel
#

Thanks for doing the testing work....

#

Thats a Bug

#

I will report on Github

#

To solve it for now....

#

Please use the Bravo LED once again.
And add a transform.....

#

Floor($)

#

Do a final test.
Should work now also with Bravo Lights !

calm vessel
#

You not need to make Vids or screens all time. Whatever its usefull. A Yes or No is often ok too. Just to save you work ๐Ÿ™‚

broken timber
#

lol
THANKS

is it easier for you?

What about badly translated text?

broken timber
calm vessel
#

Thats a Config issue then.
Disable all other configs.
Green and Red are two independent things.

broken timber
#

same problem with new config the red led and green as mixed

#

I will continue tomorrow
Thanks for your help

calm vessel
#

No Prob.
If needed share the configs.
i not understand what "mixed" means.
If you use the right device and you use correct Compare/Transform in Both Configs then LED should work as expected.

broken timber
calm vessel
#

Green Only light at 100 .... So Compare IF Value =100 ( Or use >98 to avoid the problem @hallow wren said) THEN 1 ELSE 0
Red Only light between 1 and 99 Not at 0 or 100 .... Compare IF Value >98 THEN 0 ELSE $
And for sure to avoid the Float Bug..... Transform in Both : Floor($)

#

Sorry. Corrected. >99 make no sense. With floor it must be >98

#

You need to re assign the Bravo....
In case i not own it my Setup use my Mega and LED.

broken timber
#

ok your config its works

broken timber
#

Good morning

I just redid a test with the last version of MF Beta 9.7.0.1

the problem seems to be fixed

I just have a synchronization problem between the leds of the simulator and the leds of the honeycomb bravo

Thanks a lot

glossy juniper
#

@calm vessel I'm trying to set an in-transit LED for my WT-CJ4. There is no preset for that if I'm correct. So I'm using the generic GEAR POSITION INDEX preset. I have also tried the GEAR CENTER POSITION preset. The transit LED lights as soon as the gear lever is actuated, but when the gear is safe, the LED stays on. I only want it to be on when gear is moving! It looks to me if I need a "precondition" to perform the test >0 and <100. how exactly do I specify that?

glossy juniper
#

SOLVED: Working Title do indeed provide a preset to show any gear light in red if in transition tested landing center red on, is only on in transition - not perfect solution but it works!

calm vessel
#

Hi @glossy juniper
Do you mean the Preset you got is global for all 3 Gears ?
If yes... If you not plan to use "failures" then its ok. Cause no issues mean never a gear is broke. So all 3 work simultanious .

Whatever.... for a Perfect Solution you can use simply the GEAR POS Presets ( whatever as Index, Percent or so.
And you not need a "PRecondition" you need a Transform or a Compare.

E.g. Transit should be OFF in UP and DOWN position and must be ON in Moving Position.
So e.g. with a percent Value of 0-100 you say in compare: IF Value = 100 THEN 0 ELSE $
Means at UP its 0 (OFF) in Moving (1-99) its ON cause its 1 or greater.... And at DOWN (100) our Compare say "show 0" means its OFF Again.

#

Same result by a transform : if($=100,0,$)

glossy juniper
#

Thanks for getting back to me, I understand what you are saying (sorry for typo in original reply), but wasn't sure of the code to do it. Will try your method out! ๐Ÿค” Keep up the good work. Cheers from AUST... ๐Ÿฆ˜

glossy juniper
#

Ok, tried the transform approach... this function worked perfectly testing nose gear position....

glossy juniper
#

Now, I would like to have that "in-transit" LED blink when it is activated. I tried to use the blink LED preset to test, with a reference back to the "in-transit LED" and a transform, but the logic did not work correctly, the LED was double blinking. It looks as though I need to stop the primary config turning on the LED and instead just set and test that variable in the blink config.
Can you see where I went wrong? This the setup...

#

The one postive is that I getting a little more familiar with Mobiflight logic... I think! ๐Ÿ˜ฌ

#

I tried the GEAR CENTER POSITION config without nominating a display device, hoping that would just set the variable. So with the same reference as shown directly above, the LED blinks during transit nicely, but stays illuminated at either end of the transit...??? Other combinations turn the LED off at gear up and gear down , but gives me a double or triple blink.

#

de-selecting reference to the LED in transit config makes no difference

north crest
glossy juniper
#

interesting approach...

north crest
#

This expression is true (value of 1) if the gear position is in the range of 1 to 99.

glossy juniper
#

Your suggestion works perfectly Jaime... ๐Ÿ˜ But can you solve the blink issue??

north crest
#

I don't understand what you are doing. The output config for gear center position displays directly to the red transit led. No config reference is needed.

glossy juniper
#

Probably my lack of understanding Jaime, I am only just coming to grips with the logic and application. What I was trying to do was introduce a blink to the in-transit LED rather than a static indicator...My setup is 3 greens for gear down/safe and an orange LED for transit, rather 3 reds and 3 greens as in some aircraft. I wanted the in-transit LED to blink...

north crest
#

OK 3 green for gear down

#

1 Orange only for transit, but blinking

glossy juniper
#

It works ok but the in-transit is static at present

#

exactly

north crest
#

So you need to check all three gear position for in transit condition, plus you need a blinking config

glossy juniper
#

same thinking will be applied to flaps in-transit indicator

#

I was only going to bother for the nose gear, but I guess I could test all three

north crest
#

OK do it for center and later you can add the other gears

glossy juniper
#

That was the thinking, so my idea was to read the gear position, set a variable and test that in another config to blink the LED.

north crest
#

Easiest way is to create a blinking output config that alternates 0 and 1

#

Then just multiply it's value with the in transit value

glossy juniper
#

Ok, will try that....

#

cheers

north crest
#

There is an undocumented blink function in Mobiflight but there is no UI for it yet.

#

I do the blinking with the simulation time var

glossy juniper
#

I have seen that method, but thought it was a bit complicated for my understanding... ๐Ÿค”

#

While you are there , has there been any further decisions made on TM1637 display in Mobiflight?

north crest
#

This alternates 0 and 1 every 0.5 sec
(E:SIMULATION TIME, second) near 2 %

#

Put this on an output config

glossy juniper
#

Ok, will try

north crest
#

Bring the blink config as reference into the led display config and multiply with the transit value

#

Transform
$*#

glossy juniper
#

This is what you mean ?

north crest
glossy juniper
#

It works, but I 3 rapid flashes

#

Execellent re TM1637, I have buckets of them leftover form X-plane days

north crest
glossy juniper
#

Ok, I'm with you, I can see what you mean having it the" wrong way round", I will try it out the other way!

north crest
#

The in transit code is my method?

#

What is the blink code?

glossy juniper
#

OK, it does work perfectly the way I have it, but I need to get rid of reference to output LED in the config Display tab where I test gear position.

#

The method for gear in-transit is your method, the blink is a preset from the list ...

#

all I did to make it work was get rid of reference to output LED in the test config as below...

#

Must go make the pizza dough for dinner ๐Ÿ˜† , thanks for your help, looks like the problem is solved! ๐Ÿ‘

north crest
#

OK great

glossy juniper
#

Maybe the next thing is to test 3 gear positions to be absolutely correct.

#

Later....

north crest
#

(nose) or (left) or (right)

glossy juniper
#

Thanks @north crest , thats on the plan for today.

On a different tack, my wish list for Mobiflight. To explain- I have a config file for each of the aircraft I fly (nearly 20), many are the same and many are not. Two or three things I would like to see, the ability to open more than one Mobiflight window for editing at one time across the two, block delete and insert in the Config GUI, cut and paste from clipboard. The way I'm working in edit mode is really hindered by not being able to do these things. Probably could achieve editing between the config files, but that would be a pain.

glossy juniper
#

The alternative would be a copy of Mobiflight on two networked devices each running Mobiflight I suppose.

#

Already I see the answers to my questions on Google search, although most pertain "running" two copies of mobiflight, I just want that for editing. Easy to do on networked laptop to pc or the like....

north crest