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.

Go to page 1Go to page 112Go to page 3Go to page 2
Avatar
Valjean
Posts: 11
Moin!

jetzt habe ich das mit den Offset hinbekommen. Muss man erstmal drauf kommen dass man für 1° Heading change einen Wert von 182 eintragen muss.
Allerdings prellt der Encoder extrem, wenn ich links rum drehe springt er immer wieder auch rechts rum. Kann ich im Logging im Debug-Modus sehen. Es kommt permanent Executing OnLeft: Encoder@SN-379-c6b und Executing OnRight: Encoder@SN-379-c6b im Wechsel. Je schneller ich drehe, desto extremer wird es.

Laut Internet-Recherche liegt das bei den billigen Encodern daran, dass die Rastungen auf derselben Position liegen wie die Pegelwechsel. Dieses Problem kann man wohl programmtechnisch lösen, allerdings verliert man dann jeden zweiten Pegelwechsel, halbiert damit die Anzahl der möglichen Impulse. Ich werde wohl ein paar vernünftige Encoder besorgen müssen.

Gruß
Robin
2015-08-03 20:29
Avatar
DocMoebiuz
From: EDSH, Germany
Posts: 1516
Hi Robin,

hmm, echt schade - Hast Du sicher gestellt, dass die Verkabelung passt? Im Ernst, verschiedene Encoder haben die Pins unterschiedlich belegt. Es gibt welche da ist Pin2 GND und es gibt welche da ist es Pin1 oder Pin3. Das könnte zu Deinem Problem passen.
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - MSFS2020, FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2015-08-03 23:00
Avatar
Valjean
Posts: 11
Moin!

So jetzt habe ich das nochmals mit anderen Encodern versucht. Das gleiche Spiel.
Hier mal ein Log, was beim Drehen links herum passiert:

07.08.2015 18:24:54: Executing OnLeftFast: Encoder@SN-379-c6b
07.08.2015 18:24:54: Executing OnRightFast: Encoder@SN-379-c6b
07.08.2015 18:24:54: Executing OnRightFast: Encoder@SN-379-c6b
07.08.2015 18:24:54: Executing OnLeftFast: Encoder@SN-379-c6b
07.08.2015 18:24:54: Executing OnLeftFast: Encoder@SN-379-c6b
07.08.2015 18:24:54: Executing OnLeftFast: Encoder@SN-379-c6b
07.08.2015 18:24:54: Executing OnLeftFast: Encoder@SN-379-c6b
07.08.2015 18:24:54: Executing OnLeftFast: Encoder@SN-379-c6b
07.08.2015 18:24:54: Executing OnLeftFast: Encoder@SN-379-c6b
07.08.2015 18:24:54: Executing OnLeftFast: Encoder@SN-379-c6b
07.08.2015 18:24:54: Executing OnLeftFast: Encoder@SN-379-c6b
07.08.2015 18:24:54: Executing OnLeftFast: Encoder@SN-379-c6b
07.08.2015 18:24:54: Executing OnLeft: Encoder@SN-379-c6b
07.08.2015 18:24:54: Executing OnLeft: Encoder@SN-379-c6b
07.08.2015 18:24:54: Executing OnLeft: Encoder@SN-379-c6b
07.08.2015 18:24:53: Executing OnLeft: Encoder@SN-379-c6b
07.08.2015 18:24:53: Executing OnLeft: Encoder@SN-379-c6b
07.08.2015 18:24:53: Executing OnLeft: Encoder@SN-379-c6b
07.08.2015 18:24:52: Executing OnLeftFast: Encoder@SN-379-c6b
07.08.2015 18:24:52: Executing OnRightFast: Encoder@SN-379-c6b
07.08.2015 18:24:52: Executing OnLeft: Encoder@SN-379-c6b
07.08.2015 18:24:52: Executing OnLeft: Encoder@SN-379-c6b
07.08.2015 18:24:52: Executing OnLeft: Encoder@SN-379-c6b

Gruß
Robin
[Last edited by Valjean, 2015-08-07 20:06]
2015-08-07 18:26
Avatar
DocMoebiuz
From: EDSH, Germany
Posts: 1516
Bitte prüfe die PIN Belegung bei deinem Encoder. So kann das nicht aussehen. Ich tippe auf falschen Anschluss oder falsche Config vom Encoder.
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - MSFS2020, FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2015-08-07 19:55
Avatar
Valjean
Posts: 11
Moin!

Pinbelegung vom Encoder (ALPS STEC11B13; 20 Incremente/20 Rasten) ist A C B wobei C = GND. Ich habe A an Pin 36, B an Pin 37 und C an GND direkt verdrahtet.

Die .mcc sieht so aus:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<MobiflightConnector>
<outputs />
<inputs>
<config guid="275bf8a9-6172-47a2-977f-793e79b6d03d">
<active>true</active>
<description>AT Toggle</description>
<settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=6.0.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-379-c6b" name="Button" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<button>
<onPress type="KeyInputAction" key="Shift+R" />
<onRelease />
</button>
<preconditions />
</settings>
</config>
<config guid="7457e469-30ad-40c4-8abf-91b805def1f8">
<active>true</active>
<description>HDG Bug Set</description>
<settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=6.0.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-379-c6b" name="Encoder" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<encoder>
<onLeft type="FsuipcOffsetInputAction">
<source type="FSUIPC" offset="0x07CC" offsetType="Integer" size="4" mask="0xFFFFFFFF" multiplier="1" bcdMode="False" inputValue="$-182" />
</onLeft>
<onLeftFast type="FsuipcOffsetInputAction">
<source type="FSUIPC" offset="0x07CC" offsetType="Integer" size="4" mask="0xFFFFFFFF" multiplier="1" bcdMode="False" inputValue="$-1820" />
</onLeftFast>
<onRight type="FsuipcOffsetInputAction">
<source type="FSUIPC" offset="0x07CC" offsetType="Integer" size="4" mask="0xFFFFFFFF" multiplier="1" bcdMode="False" inputValue="$+182" />
</onRight>
<onRightFast type="FsuipcOffsetInputAction">
<source type="FSUIPC" offset="0x07CC" offsetType="Integer" size="4" mask="0xFFFFFFFF" multiplier="1" bcdMode="False" inputValue="$+1820" />
</onRightFast>
</encoder>
<preconditions />
</settings>
</config>
</inputs>
</MobiflightConnector>

Gruß
Robin
2015-08-07 20:16
Avatar
DocMoebiuz
From: EDSH, Germany
Posts: 1516
Hi Robin,
Ich verwende ähnliche Alpsencoder ohne nennenswerte Probleme. Nur wie gesagt bei Richtungswechsel.

Du kannst ja mal versuchen pull down Widerstände zu verwenden um die Signale zu entprellen und berichten ob es hilft. Dann könnte ich evtl in der Software noch was einbauen.
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - MSFS2020, FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2015-08-08 07:40
Avatar
Valjean
Posts: 11
Moin!

ich habe so den Eindruck, dass die Signalverarbeitung hinterherhinkt. Wenn ich sehr langsam drehe klappt es fehlerfrei, sobald ich schneller drehe bekomme ich Probleme mit den falschen Signalen und dann läuft das Signal zusätzlich noch nach, wenn ich schon aufgehört habe zu drehen. Mit Pullup Widerständen (Habe ich gestern noch versucht) klappt es minimal besser. Das Problem ist aber dadurch nicht beseitigt.

Eventuell könnte das Timing ein Problem darstellen. Für mich sieht es so aus, als ob der beim schnellen Drehen einzelne Signale nicht verarbeitet werden (können). Das kann dann die ungewollten Richtungswechsel verursachen. Dafür spricht, dass der ungewollte Richtungswechsel fast immer nur mit Signal "EncoderFastLeft"/"EncoderFastRight" einhergeht.

Gruß
Robin
2015-08-08 10:28
Avatar
DocMoebiuz
From: EDSH, Germany
Posts: 1516
Dreh einfach erst mal langsamer am Encoder :) Das geht leider nicht beliebig schnell auf eine so flexible Weise wie mit dem MobiFlight Board.
Wie gesagt werde ich noch versuchen, das Verhalten zu verbessern. Für mich ist es zur Zeit aber schon definitiv verwendbar.
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - MSFS2020, FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2015-08-10 21:02
Avatar
Valjean
Posts: 11
Moin!

für den Moment werd ich es so machen müssen.

Mal ne Frage: Welche Auflösung haben die von Dir verwendeten Encoder? Könnte ja sein, dass je nach Auflösung das Verhalten stärker oder schwächer ist.

Bis dann
Robin
2015-08-16 20:42
Avatar
DocMoebiuz
From: EDSH, Germany
Posts: 1516
Auf meinem Testboard die haben 30 detents. Die verwende ich auch an einem Radio-Panel. Ich bin zufrieden und so ein krasses hin- und her hab ich nicht.
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - MSFS2020, FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2015-08-16 22:00
Go to page 1Go to page 112Go to page 3Go to page 2