February 17, 20188 yr Hi all, I would like to show permanently on MCP instead of weather data the position of the 'VC_PEDAL_DISC_CPT' as long as it is in down position. I tried to modify weather display function from the actions.lua in my user.lua but somehow with no success because I am not an expert in lua. I enclosed my attempt to modify this part of the actions.lua and I appreciate if someone could help. thanks a lot Stefan -- display Weather data and Pedal Pos on MCP display Baro = round(ipc.readUW("0EC6")/16) OATval = round(ipc.readUW("0E8C")/256) WINDval = round(ipc.readUW("0E90")) WindDir = round(ipc.readUW("0E92")*360/65536)local Lvar = 'VC_PEDAL_DISC_CPT' local pos = ipc.readLvar(Lvar) if OATval > 100 then OATval = OATval - 256 end if pos > 0 then UpperInfoLong = "Tiller" elseif not Airbus then UpperInfoLong = Baro if (OATval >= 0) and (OATval < 100) then UpperInfoLong = UpperInfoLong .. " " .. OATval .. "C" elseif OATval < 0 then UpperInfoLong = UpperInfoLong .. " -" .. math.abs(OATval) else UpperInfoLong = UpperInfoLong .. " " .. OATval end LowerInfoLong = WindDir .. '/' .. WINDval if WINDval < 100 then LowerInfoLong = LowerInfoLong .. "kt" end else UpperInfoLong = Baro LowerInfoLong = OATval .. 'C' end regards Stefan Liebe
February 18, 20188 yr Author I tried 2 different user.lua but no success. If someone could give a hint I would be lucky thanks Stefan -- $$ tiller function SL_PEDAL_DISC_CPT_toggle() local Lvar = 'VC_PEDAL_DISC_CPT' local pos = ipc.readLvar(Lvar) local val = 76024 ipc.control(FSL, val) ipc.sleep(200) local val = 76026 ipc.control(FSL, val) ipc.sleep(200) pos = ipc.readLvar(Lvar) if pos > 0 then DspShow('CPdl', 'down') UpperInfoLong = "TILLER" else DspShow('CPdl', 'up') end end --display Pedal Pos local PedMode = ipc.readLvar('VC_PEDAL_DISC_CPT') if PedMode == 0 then PedModeTxt = "UP" else PedModeTxt = "DOWN" end if PedMode == 0 then if _MCP2a() then UpperInfoLong = "PED " .. PedModeTxt LowerInfoLong = "" else UpperInfoLong = "PED" LowerInfoLong = PedModeTxt end end regards Stefan Liebe
February 18, 20188 yr Hello Stefan, I have made a function for you, which you can insert into the original actions.lua The info will appear on the left side on the display (not in the middle where the weather currently is) However I do not know if you have an MCP airbus style and if so, if it will work then. I have tested it with my MCP II Boeing style. Drop me a note if it does not work. Insert this function into the actions.lua: function VC_PEDAL_DISC_CPT_show () PdlPos = ipc.readLvar("VC_PEDAL_DISC_CPT") if PdlPos == 0 then PdlPosTxt = "--" elseif PdlPos > 0 then PdlPosTxt = "on" end com.write(dev, "A/TPd", 8) com.write(dev, "F/D" .. PdlPosTxt , 8) end and insert this line under the Timer function: VC_PEDAL_DISC_CPT_show () Should look like this then: function Timer () VC_PEDAL_DISC_CPT_show () As I said, if you prefer an other solution, let me know. Note: this is just a solution for you. The public release for the FSLabs module will be unchanched. maybe we add this at a later stage Viel Spaß, Günter Guenter Steiner -------------------------------------------------------------------------------------- Betatester for: A2A, LORBY, FSR-Pillow Tester --------------------------------------------------------------------------------------
February 19, 20188 yr Author Hallo Günter; vielen Dank. Ich habe auch das Boeing MCP_2 Panel. Wenn ich die actions lua wie angegeben ändere habe in der linken Anzeige links von SPD oben die Buchstaben "Pd" und darunter "--". Die Anzeige ändert sich nicht egal ob ich die Pedals ein - oder ausschalte. Ohne die Änderung in der actions.lua sind links von SPD 2 Striche und darunter links der Ziffern auch. Ich gehe davon aus, dass da an der Positionierung der Zeichen noch etwas nicht stimmt.Ich nehme an das sind die Zeilen die mit com. write beginnen. Ich werde versuchen mit try und error eine Lösung zu finden so, dass die Meldung auf 2 Zeichen reduzeirt ist. Ich melde ob ich erfogreich war. nochmals vielen Dank Stefan regards Stefan Liebe
February 19, 20188 yr 1 hour ago, Stefan01 said: Wenn ich die actions lua wie angegeben ändere habe in der linken Anzeige links von SPD oben die Buchstaben "Pd" und darunter "--". hmmm, seltsam... ich habs natürlich getestet. Und wenn Du Pd und die Striche schon siehst, dann klappts ja eigentlich. Ich vermute dann eher, wir verstehen uns nicht ganz: ich meine, wenn der Steering Tiller gedrückt ist (VC_PEDAL_DISC_CPT) Ich habe als Anzeige "Pd --" für nicht gedrückt und "Pd on" wenn gedrückt. (Können wir gerne noch ändern, wenn DU eine bessere Idee hast) Hab allerdings direkt mit der Maus im VC den Tiller gedrückt... gibts da noch andere Möglichkeiten? Guenter Steiner -------------------------------------------------------------------------------------- Betatester for: A2A, LORBY, FSR-Pillow Tester --------------------------------------------------------------------------------------
February 20, 20188 yr Author Hallo Günter, mein Fehler, ich habe bei den Options die Warning Notice auf OFF gesetzt und auch die Pedal Disc BTN Sticky auf OFF gesetzt. Dadurch war der Button nur kurz down und die Anzeige kam natürlich nicht. Jetzt ist der Button auf Sticky und die Anzeige funtkioniert. Nochmals vielen Dank für die Sonderbehandlung. viele Grüsse Stefan. P.S.: Donation folgt...diesmal an die richtige Adresse regards Stefan Liebe
February 20, 20188 yr Danke Dir! Guenter Steiner -------------------------------------------------------------------------------------- Betatester for: A2A, LORBY, FSR-Pillow Tester --------------------------------------------------------------------------------------
Archived
This topic is now archived and is closed to further replies.