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
bill516
Posts: 4
using x plane and mobiflight 7,10 8 digit display, left padded space, digits 2, 4, 6, 8

config set as offset 0x054 int 2 byte mask 0xFFFF bcd checked

set val on left on right
if($<7,$+1,0) if($>0,$-1,0)
if (>0,$-10,70) if($<70,$+10,0)
if ($<700,$+100,0) if ($>0,$-100,700)
if($>0,$-1000,0 if($<7000,$+1000,0)

the set values are written so that numbers change in correct way for its encoder i.e on right 0 to 7 on left 7, numbers increment and decrement as expected.

The problem,

the lowest number I can set on the display is 1000 , if I go beyond 7000 the display only shows the left most digit as 0 then will show 1000 if I keep turning. I get the same result using the 100 and 10 digit encoders, so I cannot set a frequency of e.g 0123 etc.

I have to admit I'm a nuts and bolts guy so software and wiggly amps baffle me to the extreme, or to put it another way, thinking makes my brain hurt but I can lift heavy weights.

Bill
2021-01-10 13:42
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
This can not work !

If you read the whole Frequency with your Configs ( 0354 2 BYte INT ) then the Value is also the whole Number.

Lets looks at your "1 Position Configs"
if($<7,$+1,0) if($>0,$-1,0)
Lets say current Value is 1234
If you turn to the left you say "if($<7,$+1,0)" means if 1234 is less then 7 then 1234+1 (1235) .... else set to "0" ( so Frequency now is "0000" )
That means.... The THEN only happen at 0001, 0002, 0003, 0004, 0005 and 0006 .... In each other Transponder Value it will set to "0"
And by the way.... On LEFT the Value should decrase.... not Increase !

On Right you say if($>0,$-1,0) .... So in all Transponder values except "0000" you say $-1 .... If it´s "0" you set again to 0.
That occure also in a missing (wrong) swap ....
Lets say you got "1200" Formula : if($>0,$-1,0).... means if 1200>0 then 1200-1=1199 Else "0" . So it will send 1199 to sim whatever transponder not accept a nine!

Summary: I not fully understand why your "issue" happens.... But on first view the Inputs should not work in total. i wondering why you say they basicly work already.

**************
Solution:
1. Work with Key Send... As i know most Xplane users work with Joystickbutton or Keys here cause its more comfortable.
2. If you like to use the Offset Methode.... I think here much much more compelx formulas are needed. I not try out but we need to exclude the needed diggit with "Floor" and "Modulo" formulas and a advanced recalculation.
To help here i need to build this for testing myself!
Good Luck !
2021-01-17 02:55
Avatar
bill516
Posts: 4
Thanks for response pizman, I havent been able to do any sim stuff for a few days as I was abducted by the decorating monster and it held me captive till I had the bedroom done.

I have read your response but things are no clearer to me than before, I just dont understand what I am doing.
2021-01-20 18:43
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Yeah.....
What your trying here is "medium advanced" . If you have no basic knowledge about Math, rudimentary programming and how Offsets work this is a little difficult.

As i said... We can try to handle this together in the future. This will take me a longer free time periode. Cause thats a advanced system also for me.
But i still high recommend to try to ue a alternate like Key/Joystick inputs.
Here XPUIPC is a little unpracticable and we would need a difficult system to handle it !
Good Luck !
2021-01-21 17:35
icon