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.

icon
Avatar
souza
From: IVOTI RS BRAZIL, Brazil
Posts: 53
Supporter
hello dear friends...everyday the MF is show me a amazing tool, i am building now a MCP, and i having greats results, but unforttunatelly i dont know how can i use the C/O function to change the value in display, 2 issue.
1, how can i change the value showed in the display ( MAX7219 7 segments), like in the default 737 FSX, alternating IAS- MACH, i only did these in a precondition function, but in determinade altitute....i put the condition then when the altitute/ FL reach 27000 ft, the display turn off IAS speed and show MACH speed like the MCP on the FSX airplane., but i would like to use directly only pressing C/O button.
2. i found the 3 codes For the C/O function, 0E0C-2 bit for the 737, and 0E18-2 bit for the A321, or EVENT ID 65918, i setted these codes, but when pressing the switch in MCP, the blue led on the MEGA blinks, but the C/O button doesnt work.
SIMULAR É...
2017-11-19 17:30
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
Hi souza,

the EventID you use (65918) is AP_MACH_HOLD for the standard airplane.
As you correctly stated then AP automaticly switch from IAS to MACH above FL260 Above this FL you can not switch or display IAS. Therefore look on your MFD.

To switch to MACH below FL270 you should use EventID 66096 AP_MACH_ON or EventID 66097 for AP_MACH_OFF. Use it with ON PRESS and ON RELEASE.

0x0E18 and 0x0E0C are only the indicators (738 and 321) if the C/O button is pressed or not and only for the moment you press the button it's not a toggle!

Whether 66096/66097 switch the display permanently or only for the moment of pressing, you would have to try.

Maybe that pizman has a better solution for you.
Grüße,
Stephan (Time: UTC+2)
2017-11-19 21:07
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi.

Thats a bit tricky i think.

I not use Standard FSX B737 cause i own PMDG ant thats much more detailed and use own logics.

So i can´t give you a complete sulution cause i NOT know how the Standard FSX B737 work here.

Basicly you can simply find out that youreself
(If not i can do testings for you but i get no free slot next 2-3 Weeks... Lots of privat Email Help Requests of other users are in the "Holding" at the moment :P )

What you can do.....
Please find out how this workes....
Observe the Offsets that You and Stephan said..... Make a Output Config without Device in a "new" Mobiflight File (Just for testing)
Then start a flight and try out....
What happend if you reach flightlevel XY .... Does the Offset of 0E0C Change if the system automaticly change into MACH ??
What happend with the IAS and MACH Outputs when you change the Display..... Are Both still present ? 07E2 and 07E8

Also i miss a Offset for that Switch..... Stephan said EventID 66096/66097 sounds good.... But WHERE is a Offset that do the same ??

Finaly..... You need a Indicator for Your Display that say 100% correct WHAT Mode is ON at the moment.
If this not exist you need to mke maby a "Double Precondition"

Say for Example
- Mach Display should work if Altitude is Bigger then XXXX "" OR "" if Position of C/O is MACH
- IAS Display should work if Altitude is LEss then XXXX ""AND"" Position of C/O is IAS

*****
Again... I Not know the system.... You MUST find out the complete logic before you can create a working Mobiflight config !
Good Luck !
2017-11-20 09:57
Avatar
souza
From: IVOTI RS BRAZIL, Brazil
Posts: 53
Supporter
thank you both stephanHO and pizman82,,, i going to do some test with your recomendations e i will give you a feedback, everiday we discovery the amazing capacity these software, and these forum is a great gear that give us a possibility to xpand our knowledge, thank you.
SIMULAR É...
2017-11-20 13:42
Avatar
souza
From: IVOTI RS BRAZIL, Brazil
Posts: 53
Supporter
gentlemen, i did some tests, and i obtained a GOOD result...let me explain.
i setted the input C/O button...
FSUIPC 0x0e0c...int...2bytes
on press=0
on release=if($=1,0,1)
it is working but some times is necessary to press 2, or more times to change selection and hold, i am using for these a push button,
is changing the value only in my MCP panel, on the aircraft panel doesn`t change

in the output display, i am using these configuration, not for monitoring in mcp, but to give a way to precondition use
firstly i created another pin out signal/parameter to use with precondition

C/O LED PRECOND...PIN 13
FSUIPC 0x0e0c.....int....2bytes
THESE SIGNAL I WILL USE IN PRECONDITION SITUATION ONLY FOR IAS AND MACH SPEED DISPLAY

output...

IAS DISLPLAY
FSUIPC 0x07e2..int.....2bytes
PRECONDITION
use type of...............config item
chose config............C/O LED PRECOND
if current value is.....=0

MACH DISLPLAY
FSUIPC 0x07e8..int.....4bytes
COMPARE
input.....output
0...........0
655.......1
....a lot of......
77990....119
78645....120.....(the value is mach 1.2)

PRECONDITION
use type of...............config item
chose config............C/O LED PRECOND
if current value is.....=1

OK...like i told before, when i click the push button,the value in MY MCP PANEL DISPLAY change from/or IAS/MACH SPEED, but in the aircraft panel doesn`t change....i believe that i am in the correct way, i hope to help some one.
SIMULAR É...
2017-11-21 14:49
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi
Its verry interesting how other users "see" the world.

Your system is working i think.... But its verry confusing . I hope you are not offended if i say that but THIS should not recommend to other users !

Just some facts you can make better ( or more profitable and comfortable)

1. The Push Button Config
Your Press/Release Commands will work.... But are not logical. You Mixup a SET (Press) and a TOGGLE (Release) .
In Your System the Press set to "0" .... The Release Say IF "1" THEN "0" ELSE "1" .... here its ALWAYS "0" cause the Press before had set it to 0 already !
If you only need a Toggle ( like you do) then NOT use the Release Tab..... and use ONLY The OnPress with the value "if($=1,0,1)"


2. The Output Offset for Precondition Indicator
It´s Correct that you define a Output Config to read the 0E0C .... BUT You not need to create a Output Device on a Pin for that. ( Pin13)
Outputs work whatever they have a Device or not..... For READOUT Outputs ( That we only need for precondition) a Device is not needed and should NOT be used !


3. Not needed Compare/Interpolation
You say
iconsouza:


COMPARE
input.....output
0...........0
655.......1
....a lot of......
77990....119
78645....120.....(the value is mach 1.2)



First that can´t be a Compare... Thats a Interpolation..... But Whatever thats not needed......
In the FSUIPC Offsetlist is written:
iconQuote:

07E8 Autopilot mach value, as Mach*65536



So the Value is the MACH Multiply with 65536
So if you divide the Raw Value thorugh 65536 the result is the clear Mach Value all the time !
Simply use TRANSFORM Field... Activate it and say "$/65536"

Finaly.....
Just keep a Eye on the INPUT of Speed Encoder.
If Youre not Synchron with the Sim ( Your Display show MACH the Sim show IAS for example..... Then the Encoder "can" be a problem in the future.... It will Change the function that is active in the Sim.... if it´s different to yours its "maby" problematic ! Just try out in the future.
Good Luck !
2017-11-22 09:02
Avatar
souza
From: IVOTI RS BRAZIL, Brazil
Posts: 53
Supporter
hello....
firstli i would like to thank you for the fast feed back
at noway i am not ofended, everiday i am learning about these software, some time is complicated to explain some thing,
ok..lets go.

1. The Push Button Config....
firstly i found these instruction at forum previously....(If you only need a Toggle ( like you do) then NOT use the Release Tab..... and use ONLY The OnPress with the value "if($=1,0,1)" )...but i dont know in the first time doesn`t work for me, but i tried again and now is working.

2. The Output Offset for Precondition Indicator.....i understood that is no necessary the DEVICE, like a LED For READOUT only the signal for create a PRECONDITION, but for these is necessary to ADD a DEVICE,and subsequently is necessary a pin avaiable for this,with out the object, or is there another way to do?

3. Not needed Compare/Interpolation....i know that the FSUIPC give me the formula/relation like $/65536*100.....i really used these, but in somes results the value informed is wrong, for example..using the raw formula from the FSUIPC VALUE , this informed is 18350=mach.27...but in the simulator is showing mach .28..and others values too...mach .53, 54...because these i made the correction.

and finally about the encoder...i am using the encoder BIGTREE soldered in a board with some resistors, i made de replacement for other, an is working normaly, but the same situation is occurring, the valuE change in my MCP, but in the panel of the airplane not change,other situation is that i need some times more than one click to change the value, how can i identify the model of the encoder, like pulse.
thanks a lot,
[Last edited by souza, 2017-11-23 11:08]
SIMULAR É...
2017-11-23 10:33
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi again

About 2:
You not need a device for a Output Config if you use it just for precondition.
Simply NOT make entrys in the "Display Tab".
Create a Output Config.... Say What Type like FSUIPC Offset..... Make entrys for Offsetadress, Type like INT and Byte. Make Transform, compare etc if needed.... BUT Not define a Device in the Display Tab. ..... Activate The Config.... Then it work like all others but not try to controll a Device !

About 3: Thats a Problem of "Rounding" Pretty shure you see it if you observe the FSUIPC Value in the Output Config ( Right Side Column in Mibiflight Window)
If your Display show the Value 0.27 but on Sim it´s .28 for example im pretty shure the value is for example 27,9xxxx .
The Sim already round this number..... Mobiflight not see the decimals and ignore it if you not TELL Mobiflight it should round it, too..
With your function $/65536*100 you will get a 2 Number value for your display.... But The division can occure on longer numbers.....
For Example 27,1, 27,2, 27,3, 27,4, until 27,9 ... ALL are shown as 27 on Display.... But in System 27,5-27,9 must show as 28

To make that work you must use Round Command in the Transform field..... I can´t give you a solution direct... I must tryout myself.... But example can be Round($*100/65536,0)
Try out !

About basic Encoder questions.... Look on other Topics we talk ablout please !
Good Luck !
2017-11-23 12:42
Avatar
ismail3434
Posts: 9
</config>
<config guid="c339815b-35ac-42b1-9a4f-ef4a9506caa6">
<active>true</active>
<description>PMDG CO SEL</description>
<settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.2.0.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9e6-e53" name="IAS CLICK PMDG X" type="Button" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<button>
<onPress type="EventIdInputAction" eventId="70015" param="2147483647" />
<onRelease />
</button>
<preconditions />
</settings>
</config>
2018-02-01 08:09
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
iconismail3434:

</config>
<config guid="c339815b-35ac-42b1-9a4f-ef4a9506caa6">
<active>true</active>
<description>PMDG CO SEL</description>
<settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.2.0.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9e6-e53" name="IAS CLICK PMDG X" type="Button" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<button>
<onPress type="EventIdInputAction" eventId="70015" param="2147483647" />
<onRelease />
</button>
<preconditions />
</settings>
</config>



?? Is that a wrong mesage or what you like to tell us ? Should i delete it ?
Good Luck !
2018-02-01 12:25
Avatar
ismail3434
Posts: 9
i use this code for CO SEL buton
2018-02-02 20:35
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Thanks for your Input..... But the User above request for that function NOT with PMDG..... There as i told it´s no problem cause PMDG support this button 100%..... In Standard Aircrafts this is not perfect simulated and a bit more tricky !
Good Luck !
2018-02-02 21:32
icon