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
Tango1974
From: ETSI
Posts: 40
Supporter
Hallo,

nach langer Suche und stückchenweiser Überprüfung meines Setups konnte ich mehrere Fehler in meinem Setup (Ansteuerung von über 100 LEDs mit Abhängigkeit vom Batt-Switch, Light Tests Switch und vom jeweiligen Offset) beheben. Mal war es eine Precondition, die nicht passte. Mal war es ein Vergleich, der nicht passte, mal wurde eine LED von zwei Offsets angesteuert und mal wurde das falsche Arcaze LED Bord angesteuert. Die Suche erstreckte sich bisher über mehrere Tage und hat mich viele Nerven gekostet. Mittlerweile hat mein gesamtes Setup ca. 400 Zeilen.
Eine große Hilfe wäre ein automatisierter Kompatibilitätscheck der einzelnen Zeilen untereinander gewesen. Ich bin zwar nicht der größte Programmierer, aber einen Pseudocode bekomme ich noch hin:

For i=1 to Anzahlzeilen
Arrayindex=1
L=angesteuerter Pin (i)
For J=1 to Anzahlzeilen
If angesteuerter pin (j)=L then
Pinmatrix (i, arrayindex) = J
Arrayindex = arrayindex + 1
Ende
Next J
For k = 1 to arrayindex
' Check compatibility of lines (pinmatrix(i,k):
Set preconditions(line(pinmatrix(i,k))
Set Output = true/false 'abhängig von der
Precondition und vom
Vergleich
for m = 1 to arrayindex
N=1
If m <> k the
Set preconditions(line(pinmatrix(i,m))
Set Outputcheck = true/false 'abhängig von der
Precondition und vom
Vergleich
If output=outputcheck the
Fehlerzeile (i,n)=pinmatrix (i,m)
N=N+1
Endif
Next m
Next k
If n>1 then
For o=1 to n
Print "Line "&j&" is in conflict with Line "&Fehlerzeile (i,o)&"."
Next o
Endif
Next i

So, habe mich als Quasi Contributor geoutet.
Der Pseudocode ist natürlich noch zu verfeinern. Gerade der Bereich der Precondition Und Vergleichsstimulation muss noch überdacht werden. Aber ich denke, dass so ein Check vielen bei der Erstellung Ihres Setups helfen würde.

Sebastian, jetzt liegt es bei Dir.

Gruß Tobi
2016-11-19 13:19
Avatar
Tango1974
From: ETSI
Posts: 40
Supporter
Sorry. Finger Trouble. Habe versehentlich 2mal gepostet. Einer kann gelöscht werden.

Gruß Tobi
2016-11-19 19:57
icon