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 012Go to page 2Go to page 2
Avatar
mike24
Posts: 20
Hello
I have just started to use mobiiflight so I need a little help
Could somebody please help me step by step with entering jeehell offsets both input and output for example
E.g. 1 imput jeehell autobrake medium switch the offset is 78ED 1 29 how do I enter this in mobiflight choices
E.g. 2 output jeehell autobrake med led how do I enter this in mobiflight choices
Hopefully just these examples i should be cable to do the rest
I have set board up correctly led pin and imput button choices ok
Thankyou for your software
Mike
2017-07-30 22:04
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

Welcome to Mobiflight

Please first use the tutorials to learn how you work with mobiflight.... Additional in the Manual is everything written about this stuff !

In short words.... ( Sorry i´m at work at the moment and can not give you a full guide)

Output:
iconQuote:


Offset 7393 Size 1
Read bits to get LED status :
0 FO CSTR
1 FO WPT
2 FO VOR
3 FO NDB
4 FO ARPT
5 Auto-Brake DECEL
6 Auto-Brake LO
7 Auto-Brake MED



Use Offset 7393 Size 1 Byte INT
Use Bitmask and only scan the BIT #7 .
Thats All ! ( Bit goes to 1 if LED should be on and goes Zero if LED is Off)


*******
INPUT:


iconQuote:

Offset 78ED Size 1 Byte
Miscellaneous controls. Set value :
1 Arm GND SPLRS
2 DisArm GND SPLRS
.....
29 Auto-Brake MED



Here you use this Offset ( Size 1 Byte INT )
And ON PRESS you use the Value of the list ( 29 for AutoBrake MED )
This occures in a "toggle" of this function. ( If its off it will go on... If it´s on it will go off .... Smae like you click it in Simulator)
For a Switch (instead of a momentary Button) You additional need "ON RELEASE" with same Value... So you can set it ON /OFF.

NOTE: Jeehell NOT support 100% of Inputs via FSUIPC. Think about a Gamecontroller and Joystickbutton Controlls here !

Hope this helps.... IF not please request help again... I Will look at it on Thursday when i´m out of work !
Good Luck !
2017-07-31 00:20
Avatar
mike24
Posts: 20
Thankyou for reply
I understand led part
Q1 but how do I put the autobrake med switch 7393 1 29 offset in to the mobiiflight software(in what boxes)e.g. where does the 29 go I have got as far as
Imput then fsuipc choice then ?
We what resister value do I need for each led
Thanks for taking the time out
Mike
2017-07-31 08:14
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi again !

Nice that Output LED work now.

For Input:

here Jeehell use a special System like a "Comunication Offset"
Normaly every Funtion got a own Offset (Like in Standard FSX planes) . For example the Offset XXXX is 0 for OFF and 1 for ON. So you simply write it 1 or 0 to controll te function,

Jeehell got theproblem it have only a verry limmited range of offsets reserved. So they need a tricky technic to controll multiple functions with only ONE Offset.
Short explaned.....
Offset 78ED (Size 1 Byte INT) controll 80 different switches in the Sim ( You see in the List)
Here Jeehell Scans the Offset ALL the time ..... The Value is standard Zero "0" . If YOU write the Offset to a number like "29" for the Brake MED Switch then Jeehell "see" that the value is not longer Zero and start a function..... It Read your input Value (29) and starts INTERNAL the Function for that ( it push the Autobrake Button) and after then it reset the offset back to 0 . So we can do another input now.

To do that with Mobiflight.... Use Offset and Size and Type ( 78ED - 1 BYte - INT ) in your Input Config.
On PRESS you use the Value 29 ( In the Value field)

Now on every Push of your button will write the Offset to 29..... Jeehell see this and execute the internal function for 29 and set it to Zero again.

NOTE:
iconmike24:


Q1 but how do I put the autobrake med switch 7393 1 29 offset in to the mobiiflight software(in what boxes)e.g. where does the 29 go I have got as far as
Imput then fsuipc choice then ?



Here you got WRONG Offset... Input must be 78ED

*****************

At last to resistor for LED.... Here i can´t help you. You need to now the Electrical Limits of your LED. Use a calculator like this ..... http://ledcalc.com/

***************************
Good Luck !
2017-07-31 10:44
Avatar
mike24
Posts: 20
Thanks again for your time
Managed to put some inputs tonight all working fine
Q3 gear up and g eardown does it have an offset
I am using my mobiiflight on a separate computer to p3d via widefs
Do I still use the g key if so will that send g to fsuipc
2017-07-31 23:24
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Good Question:

I not use FSUIPC via Wideclient..... But i read Wideclient "see" Joystick Inputs on a Client..... So normaly Keyboard Inputs should be recognize too (I think) .

But please simply try out. Use Keysend in Mobiflight ( On the Client) and open your FSUIPC AddOn on P3d. Then go to Button/Switches setting Tab and push your hardware Button. If FSUIPC can see your Keysend the "G" should be shown.

Alternate:

Most Addons work with the standard FSX/P3D Gear Offsets.... Simply try out....
iconQuote:

Offset : 0BE8 Size: 4 BYte INT Gear control: 0=Up, 16383=Down

Good Luck !
2017-08-02 00:26
Avatar
mike24
Posts: 20
Managed to get my gearlever operating with off sets thankyou
Then i programmed more leds and used the test button ok
Now it won't run when pressing run ?
Strange have I missed something?
2017-08-03 19:37
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
If you've config the LEDs and run MobiFlight, you have to start the simulator.
Then you have to make a situation where the LED will work in the sim also your external LED(s).

If the external LED(s) won't work check your config - is the offset the right one?
If the config is ok check the polarity of the LED - anode (the longer leg) to Arduino and kathode (shorter leg) to GND.

Banal question: did you send the new config to the MEGA?

Sometimes it is helpful to reset the MEGA-board manually after uploading a new config on it.
Grüße,
Stephan (Time: UTC+2)
2017-08-03 19:54
Avatar
mike24
Posts: 20
Hi
I have set up all led correctly the right anode side etc because when you do a test they all work
I have checked the offsets all shoul be good

When setting more led s it all stopped working including buttons
Something may have altered in config ?
Thanks for your help
Mike
2017-08-03 23:36
Avatar
mike24
Posts: 20
How do I reset the board manually
2017-08-03 23:37
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
iconmike24:


When setting more led s it all stopped working including buttons
Something may have altered in config ?
Thanks for your help
Mike



Do you mean Mobiflight STOP Running ( The Play Button in top Line is not ON already and it Stop ?)

Please enable the Logging Mode in the Settings. Then in the Debug String ( Buttom lines) you can read the Issue Report what happend.
Another trick is to disable all Config Lines and use one by one until the Problem Occure. Then you know WHAT Line is wrong.

I´m Pretty shure you got a wrong Config line.... Maby a wrong Precondition, a not allowed Transform or something like this !
To RESET the Board you can Reset the USB Cable or you push the reset Button on the Mega itself.

(Sorry i can´t help you more.... Mobiflight is verry compelx and i can´t see what you setup..... If you do all right like in the Example and tutorials then there should be no issue)
Good Luck !
2017-08-04 05:01
Avatar
mike24
Posts: 20
Again thanks for the help you guys are amazing
E.g. led brake fan on 73AC 1 3
Please what box choices for this please
I thing in have done offsets wrong
Thanks
2017-08-04 14:24
Avatar
mike24
Posts: 20
What does resetting the board do?
Does it completely wipe out what's Been programmed to it?
Thanks
2017-08-04 14:40
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
Hi mike,

no, a reset does not wipe out the Arduino or the program.
A reset is a defined start of the Arduino in the powered modus. Another word for the reset is warm-start like CTRL-ALT-DEL on a PC. If you power-up your Arduino it's named a cold-start
Grüße,
Stephan (Time: UTC+2)
2017-08-05 00:23
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
iconmike24:

E.g. led brake fan on 73AC 1 3
Please what box choices for this please
I thing in have done offsets wrong



I don´t know the Problem here... It´s 100% the same like in your first question for the LED of Brake MED ( i awnserd already)

Here:
iconQuote:

Offset :73AC Size: 1 Typ: INT
Read bits to get LED status :
0 CPT Priority CPT
1 FO Priority Arrow
2 FO Priority FO
3 BRK FAN ON
4 BRK FAN HOT
5 ENG1 START FIRE
6 ENG2 START FIRE
7 ENG1 START FAULT



Create a OUTPUT ( Cause this offset show you the LED Status This is NOT a Input Offset !!
Use Offset 73AC Size 1 Byte Typ INT
Activate Bitmask and only checkmark the Bit #3 (dissable all other bits)
Then your Config is 0 if Bit is Zero (Function OFF in Sim) or its Positiv when the LED should Light up ( Then value show as "8" )

*****
To the Reset.
No Data is lost cause Configs are write to the Memory all the time. But Note: A Reset of board mostly need a New Restart of Mobiflight Software, too. Mobifligt have to boot the Board on starting. When you push the Button please restart Software, too !
Good Luck !
2017-08-05 09:03
Go to page 1Go to page 012Go to page 2Go to page 2