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
DeltaFox
Posts: 17
Hallo Cockpitbauer:)

nach nun ein paar stunden des Probierens möchte ich nun mit einem Problem (schon wieder :blush: ) an euch herantreten.

Ich habe erfolgreich ein COM1 Panel gebaut und es funktioniert einwandfrei :D .

Da mein nächstes Projekt ein MCP werden soll habe ich schon einmal testweise versucht ALT, HDG usw. zu programmieren.
Ich habe den MCP_Altitude Offset (PMDG747) per liste herausgesucht und schon leuchtete 10000 im Display auf (wie im Flugzeug). Als ich nun den Drehregler programmieren wollte nahm ich das Offset MCP_Altitude_Dial (65AC) 1 BYTE und gab bei Value $+100 bzw. $-100 ein. Der Ausgabe wert ist auch 100. Leider tat sich nix.

Hat jemand eine Idee wie das richtig zu programmieren ist?:confused:

MFG
Dennis
2020-08-03 00:51
Avatar
StephanHo
Moderator
From: EDDG, Germany
Posts: 1867
Supporter
Hi Dennis,

grundsätzlich liegst du mit Offsets schon richtig. PMDG hat aber eine Besonderheit. Neben den Offsets, die grundsätzlich für die Ausgabe (Output) gedacht sind, existieren noch die EventIDs (für Eingaben - Inputs).
Wenn du einen Encoder eingesetzt und definiert hast, dann bist du bereits auf dem richtigen Weg.
Wie gehst du vor? Als erstes löscht du im Tab Output die Config für den Encoder (0x65AC)
Jetzt wechselst du in den Tab Input und erstellt eine neue Config (z.B. MCP_ALT_SEL). Nun rechts auf die 3 Punkte gehen.
Im InputConfigWizard wählst du als Modul das mit dem entsprechenden Encoder und als Gerät den Encoder selbst.
Unter Eingabe Einstellungen wählst du für

OnLeft
ActionType: EventID
Einstellungen anpassen
EventID: 70213
Param: 8192

On Right
ActionType: EventID
Einstellungen anpassen
EventID: 70213
Param: 16384

Die 8192 steht für Mausrad down und die 16384 für Mausrad up. Die Mausrad-Events stehen am Ende der Liste für die PMDG-B737NGX. Dort nachschauen.

Da es keine offizielle EventID-Liste gibt, hatte ich seinerzeit mal eine aus dem SDK generiert. Wenn du diese brauchst, schicke ich sie dir gerne unter deiner eMail-Adresse zu, die du bei MobiFlight hinterlegt hast.
Viel Erfolg!
Grüße,
Stephan (Time: UTC+2)
2020-08-03 11:52
Avatar
DeltaFox
Posts: 17
Hallo Stephan,

vielen danke für deine Hilfe. Mit deiner Anleitung hat alles reibungslos funktioniert.

Die EventID Liste würde ich gern nehmen :D
Mittlerweile hab ich mehr Lust am Bauen als am fliegen selber :P

MFG
Dennis
2020-08-03 12:08
icon