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
aeromax
Posts: 252
Supporter
Servus

LCD Display 4x16
Fehlerfrei

Att.HDG Offset:
0x0580 Int 4 Bytes

Transform:
Round($*(360/65536)/65536,0)

Compare/Vergleichen:
if <0
then $+360
else $+1000

Korrekte Anzeige/n der vorangestellten 0, 00
[Last edited by aeromax, 2021-08-15 09:50]
Life is Good When You Find What You are Looking For!
2021-08-13 12:59
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Jupp

Das ist das alte Problem weil die LCD keinen Left Padding/ right Padding haben.
Zudem arbeiten 7Seg und LCD gegenteilig was die Logik angeht!

7 Segment schneiden alles RECHTS der Zahl ab!
Willst du z.b. 12345 auf 3 Diggits anzeigen dann steht da 123 ... ( 4 und 5 werden verschluckt da zu wenig Stellen da sind)

LCD arbeiten umgekehrt und schneiden LINKS alles ab.
Gibt man hier 12345 aus mit z.b. dem Placeholder % wie "HDG: %%%" dann steht da HDG: 345 ( 1 und 2 fallen in diesen fall weg )

*************
Es gibt dafür auch andere Lösungen..... Aber im LCD ist es am einfachsten dem Wert eine Zahl zu addieren die genau so viele Nullen hat wie es stellen gibt.
HDG 3 Stellen also +1000 ( 3 nullen) ...... Altitude 5 Stellen ..... Also +100000 (5 Nullen)
Good Luck !
2021-08-25 15:49
Avatar
aeromax
Posts: 252
Supporter
Yes, you‘re right,

musste am Anfang der Umsetzung kurz überlegen, da wie Du ebenso richtig schreibst, geht’s bei den Segmenten freilich anders rum.

Ging dann recht aber fix und dachte mir, ich stelle es kurz mal eben online. Denke kommt ohnehin fast, nahezu jeder mit klar, dennoch, vielleicht hilft es dem ein oder anderen. Passt.

Hätte für die/ den Encoder noch folgende Werte:
(On Left/ On Right)
z.B.
FSUIPC Offset 0x0C4E 2 Bytes Int
Radio NAV1 OBS
On Left: if($>0,$-1,359)
On Right: if($<359,$+1,0)

Servus
Life is Good When You Find What You are Looking For!
2021-08-25 20:10
icon