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!
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.
Code:
AP1_cur = ipc.readLvar("L:AB_AP_AP1") if AP1_cur ~= AP1_pre then AP1_pre = AP1_cur if AP1_cur == 1 then ipc.writeSB(0x565D, 1) else ipc.writeSB(0x565D, 0) end end
Code:
ipc.writeSB(0x565D, 0) end else // here goes your synch-code // read offsetValue offsetValue = ipc.readSB(0x565D); // compare with AP1_cur // if it differs then if offsetValue ~= AP1_cur then // write ipc.writeLvar("L:AB_AP_AP1", offsetValue) end end
Der Code von Dir sieht richtig aus, eventuell verwendest Du einen falschen Namen für die LVar. Das musst Du nochmal prüfen.
Code:
LUA.0: [L] LVar: AB_AP_AP1 = 1
(das bedeutet, dass Du das Offset schon mal synchronisiert hast in Richtung FSX -> LINDA -> Offset -> MFConnector -> LED)