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
Rcameron
Posts: 2
Hi
I am a new member and have my first encoder question. I am flying X-Plane (Steam/Windows) and using the default 172
On Right works perfectly with offset below
On Left is totally wonky with same reversed settings

I did an encoder heading bug setup and it works perfectly in both directions. Also Keyboard Entry works fine with the encoder in all settings (fast and slow) with text app

I am using Using
1 Detent per Cycle (00)
Gnd pin and 4 and 5 pins on mega 2560

Input
Offset 0x311E (Stndby Freq Nav 1)
Value Type - Int
Size Bytes - 2
Mask 0xFFFF
BCD Mode - not checked
Set Value On Right if($<1795,$+5,800)
Set Value On Left if($>800,$-5,1795)

Right is Perfect
Left usually changes only the decimal place by one either up or down and sometimes random

Any ideas would be great. From the forum search and documentation I have assumed (should never ever use that word... I know) that Set Values should be the reversed as I have done it but something is definitely amiss.
2022-02-16 23:19
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
iconRcameron:


Input
Offset 0x311E (Stndby Freq Nav 1)
Value Type - Int
Size Bytes - 2
Mask 0xFFFF
BCD Mode - not checked
Set Value On Right if($<1795,$+5,800)
Set Value On Left if($>800,$-5,1795)



Hi

This is a BCD Offset!

iconQuote:

311E 2 NAV1 standby frequency, 4 digits in BCD format. A frequency
of 113.45 is represented by 0x1345. The leading 1 is assumed




Please try again with enabled BCD Mode.... then it should work. On first view Formula looks good !
Good Luck !
2022-02-17 21:54
Avatar
Rcameron
Posts: 2
Thank you for the quick reply.

I forgot to mention I had tried it with the BCD mode on. I tried again this morning with a new encoder and still got similar results. With the BCD mode on, the on right side still works perfectly while the on left (with one click) now resets to the frequency 107.03 and won't move from there. With one click of On Right, it goes to 103.20 and will increase correctly from there as long as I keep the On Right direction. No matter where the On Right frequency is at, with one click left it changes to 107.03. A bit of a head shaker especially with the encoder working well with other offsets.

This particular offset (0x311E) does say (FS2002+ only) but I have seen other people in the x-plane forum using this offset so I thought it would be a good choice to try.

I appreciate any comments or suggestions.
2022-02-18 15:11
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Here is something fully wrong !

iconRcameron:


With the BCD mode on, the on right side still works perfectly while the on left (with one click) now resets to the frequency 107.03 and won't move from there. With one click of On Right, it goes to 103.20 and will increase correctly from there as long as I keep the On Right direction



A NAV Frequency can be between 108,00 and 117,95 .... So 107,03 is not possible.

I not know Xplane here....
Maybe the issue is the formula itself.... I not do this long time in case in P3D we use Events....
But in a 25khz Sequence.... +/- 5 make no sense at all.....
It must be something like..... if($=1795,800,if($%5=0,+2,+3)) ........... if($=800,1795,if($%5=0,-3,-2))

Cause with one click you increase frequency by "2" or "3" .... 108,00 - 108,02 - 108,05 - 108,07 - 108,10
Right ?
Good Luck !
2022-02-18 15:37
icon