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! 

icon
Avatar
buddym
Posts: 18
I have encoders working well, can't figure out how to swap radio active/standby frequencies. I can see the button push event in the Mobiflight debug log, but no action in Xplane using the default FSUIPC offsets. Any ideas?
Thanks,
Buddy
2019-04-10 18:26
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 2732
Supporter
As you know..... Xplane is not the best friend of Mobiflight.

EventID are not possible with Xplane.... So you must try the Standard Offsets.

iconQuote:

3123 1 Radio Use/Standby swap toggles, Write bits to operate toggles.
Don’t bother to read it, there’s no meaning to anything read.
2^3 COM1 swap
2^2 COM2 swap
2^1 NAV1 swap
2^0 NAV2 swap



If this not work please check if you use a AddOn. Please also try with a Xplane Standard Aircraft !
Good Luck !
2019-04-10 19:14
Avatar
buddym
Posts: 18
Hi pizman!

I got this working.

Com1:
On Press set byte to 8
On Release set byte to 0

same for all other toggles, just change the values as mentioned above.

Com1 = 8
Com2 = 4
Nav1 =2
Nav2 = 1

thanks,
Buddy
[Last edited by buddym, 2019-04-10 22:09]
2019-04-10 20:04
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 2732
Supporter
Thats Right ( But maby to difficult)

I not try out myself cause i use EventID in FSX..... But logical i think the "Relase set to Zero" is not needed .
Thats a "Input Value" that is set back after a Entry itself normaly! (Thats why it include Note " Not possible to read)

So i´m pretty sure you can "terminate" the On Release Commands here and it will work also !

By the way....
The Values are correct .... Thats just simply "binary logic"
Byte have 8 Bits :
2^0 means the First (Right) BIT.... So 0000.000X .... 2^1 means the second Bit So 0000.00X0 . and so on.
So For example COM2 is 2^2 ... Means the third Bit .... It shows 0000.0100 And thats in Decimal "4"

This 2^x logic is overall in Computer system... 1,2,4,8,16,32,64,128,256,512,1024,2048,4096 and so on.
For example a Stepper got 2048 Steps.... a MEGA Byte include 1024 Kilobytes in theory... There exist 256 Colors in VGA ..... You got a 32 or 64 Bit Windows .
It´s HIGH RECOMMEND to learn this line of "2^x" Numbers. That will be needed every day !
Good Luck !
2019-04-13 22:29
icon