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
mattswe
Posts: 24
Hi!
Is it possible to use a switch in order to select whether COM1 or COM2 frequency is shown on a 7-segment LED? Ive tried to use the precondition tab in my output config (actually 2 output configs, one for COM1 and one for COM2), but I cant seem to use an input as precondition on an output config. Furthermore, if using an led output (connected to my input) as precondition I get an red exclamation mark on the config.
So, can this be done somehow?
2020-12-15 16:26
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

Welcome to Mobiflight !

YES this is possible.... And YES..... Your already on the right way.

NOTE: In theory you can do those things "today" also with Placehodler/Config Refferences Tool. Here we would use Formulas in the Transform and Compare Tab and "import" Data from Other Offsets....
You can search the Forum for this..... BUT For a Simple COM1/COM2 on one Display by a Switch..... Here the old Precondition System is more easy!

************
Solution:

As you figure out: The Indicator of a Precondition MUST be a existing Output Config !
The "Red Warning Symbol --> ! <-- " is NOT a issue. This just tell you that THIS Config is at the moment not active.

So you Build 2 Configs ( one for COM1 the other for COM2) Both got a Precondition ( e.g. Config xy = 1 or the other say Config xy = 0)
Then The currently active Config show Value on Display.... The Other is disabled and THAT is shown by the Red "exclamation mark !! "

**********

About switch:
Here we need to go a little tricky bypass.
We can NOT read the switch itself..... Just a Output Config as i said.
BUT
We can write with that switch a free Offset ( e.g. 66C0) and we can also Read that Offset by a Output Config.
So... Your Switch write that Offset to 1 or 0 .... the Output Config Read it and represent now the Switch position.... And The Precondition use this Output as Indication!
Good Luck !
2020-12-15 21:21
Avatar
mattswe
Posts: 24
Thank you, it works, though somewhat akward to configure.

This led to a another question. Configuring the 8x7-seg display like in the tutorial (I use the same type as the one in the tutorial) it shows 018.45. I would like it to show 118.450. Is this possible?

Second question. What address span are the free offsets?
2020-12-16 08:01
Avatar
mattswe
Posts: 24
I found another thread on the forum that solved the last digit for me:
https://www.mobiflight.com/forum/message/20253.html
2020-12-16 17:10
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi again !

Both questions can be awnser together..... You should use the "Offset Lists" and read it if needed.
The most important list is the "FSUIPC Offset Status". This is include in your FSUIPC installation folder.
For FSX and early P3D it is in the Sim subfolder /modules ..... As a PDF File.
For new P3D it is in "user" folder and for FS2020 i think it´s in the FSUIPC folder as a XLS file.

**********
For example the COM1 there is written.....

iconQuote:

034E 2 COM1 frequency, 4 digits in BCD format. A frequency of
123.45 is represented by 0x2345. The leading 1 is assumed.



Means a Frequency of 123,45 is shown as 2345. If you like the full number use $+10000 in Transform.... So 2345+10000=12345 .... The Decimal is set in the Display itself !

If you SEARCH this list you will find also the NEW Offset that is more easy.....
iconQuote:

05C4 4 Active COM1 frequency in Hz (32 bit int)


Here a Frequency of 123,45 is in the offset 12345000 (cause its hz not khz or mhz)

*************
Finaly also your second question is awnserd by SEARCH this file.....
iconQuote:

Offset: 4200 --- 256 Byte Free for general use
Offset 66C0 --- 64 Byte Free for general use



Additional we got thousends of additional bytes in areas of AddOn aircrafts you not use. Here you must know what addon you use and what areas are bind.... All others are free, too!
Good Luck !
2020-12-19 21:00
Avatar
mattswe
Posts: 24
Thanks! This was really useful information, didnt know about the FSUIPC document.
Using MS2020 I found the doc you talk about in the FSUIPC installation folder:

FSUIPC\SDK\FSUIPC for Programmers.pdf
2020-12-21 13:59
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Thats the manual/Documantation.....
But the UpToDate List in the FS2020 ( FSUIPC7 Beta Version) as i know is a temporary XLS Excel Calc file.
Thats a bad example..... In the past this File represent a Correct and final listo of Offsets..... In this Beta its more a Green/Yellow/Red Excel File that show you what is work, what is "maybe work" and what is not work.

As written in lots of topics.... We simply must wait for the final release of FSUIPC ..... Then all is working fine like in the past. Until then we must life with this problems !
Good Luck !
2020-12-21 21:55
Avatar
mattswe
Posts: 24
I really cant find the xls file you are talking about. Do you know the name of it so I can search?

Another question. You explained to me how to use a switch in order to select if COM1 or COM2 frequencies vill be displayed on some 7-segs. I use an input and set a free offset to one when pressing and 0 when releasing. But for the ADF I need the same solution using a momentary button. Is it possible to toggle the offset value when pressed instead of setting it to 1?
2020-12-22 19:49
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

I not use the FS2020 myself. So i can´t check this for you.
A other user share me some files ..... they called "offsetStatus-v#.#" ... e.g. v0.9 For me it´s a *.ods file ( Open Office.... But maybe this is in case of converting. )

About Button.

Sure this is possible.... You use ON PRESS Value: if($=0,1,0) Means If Value is currently 0 then set to 1.... If Not ( So value is 1 ) then set to 0.
You can also toggle between more modes with a button..... For example 4 Modes (Value 0-3) Formula : if($=3,0,$+1) So it toggle 0,1,2,3,0,1,2,3, and so on.
Good Luck !
2020-12-28 02:14
Avatar
mattswe
Posts: 24
Sweet, I'll try that. Thanks.
2020-12-29 23:12
icon