December 30, 201213 yr Author Hello guys, sorry for the late reply. As far as I can say, things work here (but I have not flown the Bus now for several weeks) Please delete the assignments which do not work ("remove assignment"), save it and reassign it. Hope that fixes it. Otherwise I have to reinstall the Bus and will have a look into it if there's time for... Guenter Steiner -------------------------------------------------------------------------------------- Betatester for: A2A, LORBY, FSR-Pillow Tester --------------------------------------------------------------------------------------
December 30, 201213 yr Commercial Member Hi folks, if anyone (like me) needs although to toggle the ND buttons please replace the "ND controls" section with: -- ## ND controls ##################################### function ND_CSTR_on () ipc.writeLvar("L:AB_MPL_ND_CSTR", 1) ipc.writeLvar("L:AB_MPL_ND_WPT", 0) ipc.writeLvar("L:AB_MPL_ND_VOR", 0) ipc.writeLvar("L:AB_MPL_ND_NDB", 0) ipc.writeLvar("L:AB_MPL_ND_ARPT", 0) SmallOverheadPushButtons () DspShow ("ND", "CSTR") end function ND_CSTR_off () ipc.writeLvar("L:AB_MPL_ND_CSTR", 0) ipc.writeLvar("L:AB_MPL_ND_WPT", 0) ipc.writeLvar("L:AB_MPL_ND_VOR", 0) ipc.writeLvar("L:AB_MPL_ND_NDB", 0) ipc.writeLvar("L:AB_MPL_ND_ARPT", 0) SmallOverheadPushButtons () DspShow ("ND", "CSTR") end function ND_CSTR_toggle () if ipc.readLvar("L:AB_MPL_ND_CSTR") == 0 then ND_CSTR_on () else ND_CSTR_off () end end function ND_WPT_on () ipc.writeLvar("L:AB_MPL_ND_CSTR", 0) ipc.writeLvar("L:AB_MPL_ND_WPT", 1) ipc.writeLvar("L:AB_MPL_ND_VOR", 0) ipc.writeLvar("L:AB_MPL_ND_NDB", 0) ipc.writeLvar("L:AB_MPL_ND_ARPT", 0) SmallOverheadPushButtons () DspShow ("ND", "WPT") end function ND_WPT_off () ipc.writeLvar("L:AB_MPL_ND_CSTR", 0) ipc.writeLvar("L:AB_MPL_ND_WPT", 0) ipc.writeLvar("L:AB_MPL_ND_VOR", 0) ipc.writeLvar("L:AB_MPL_ND_NDB", 0) ipc.writeLvar("L:AB_MPL_ND_ARPT", 0) SmallOverheadPushButtons () DspShow ("ND", "WPT") end function ND_WPT_toggle () if ipc.readLvar("L:AB_MPL_ND_WPT") == 0 then ND_WPT_on () else ND_WPT_off () end end function ND_VOR_on () ipc.writeLvar("L:AB_MPL_ND_CSTR", 0) ipc.writeLvar("L:AB_MPL_ND_WPT", 0) ipc.writeLvar("L:AB_MPL_ND_VOR", 1) ipc.writeLvar("L:AB_MPL_ND_NDB", 0) ipc.writeLvar("L:AB_MPL_ND_ARPT", 0) SmallOverheadPushButtons () DspShow ("ND", "VOR") end function ND_VOR_off () ipc.writeLvar("L:AB_MPL_ND_CSTR", 0) ipc.writeLvar("L:AB_MPL_ND_WPT", 0) ipc.writeLvar("L:AB_MPL_ND_VOR", 0) ipc.writeLvar("L:AB_MPL_ND_NDB", 0) ipc.writeLvar("L:AB_MPL_ND_ARPT", 0) SmallOverheadPushButtons () DspShow ("ND", "VOR") end function ND_VOR_toggle () if ipc.readLvar("L:AB_MPL_ND_VOR") == 0 then ND_VOR_on () else ND_VOR_off () end end function ND_NDB_on () ipc.writeLvar("L:AB_MPL_ND_CSTR", 0) ipc.writeLvar("L:AB_MPL_ND_WPT", 0) ipc.writeLvar("L:AB_MPL_ND_VOR", 0) ipc.writeLvar("L:AB_MPL_ND_NDB", 1) ipc.writeLvar("L:AB_MPL_ND_ARPT", 0) SmallOverheadPushButtons () DspShow ("ND", "NDB") end function ND_NDB_off () ipc.writeLvar("L:AB_MPL_ND_CSTR", 0) ipc.writeLvar("L:AB_MPL_ND_WPT", 0) ipc.writeLvar("L:AB_MPL_ND_VOR", 0) ipc.writeLvar("L:AB_MPL_ND_NDB", 0) ipc.writeLvar("L:AB_MPL_ND_ARPT", 0) SmallOverheadPushButtons () DspShow ("ND", "NDB") end function ND_NDB_toggle () if ipc.readLvar("L:AB_MPL_ND_NDB") == 0 then ND_NDB_on () else ND_NDB_off () end end function ND_ARPT_on () ipc.writeLvar("L:AB_MPL_ND_CSTR", 0) ipc.writeLvar("L:AB_MPL_ND_WPT", 0) ipc.writeLvar("L:AB_MPL_ND_VOR", 0) ipc.writeLvar("L:AB_MPL_ND_NDB", 0) ipc.writeLvar("L:AB_MPL_ND_ARPT", 1) SmallOverheadPushButtons () DspShow ("ND", "ARPT") end function ND_ARPT_off () ipc.writeLvar("L:AB_MPL_ND_CSTR", 0) ipc.writeLvar("L:AB_MPL_ND_WPT", 0) ipc.writeLvar("L:AB_MPL_ND_VOR", 0) ipc.writeLvar("L:AB_MPL_ND_NDB", 0) ipc.writeLvar("L:AB_MPL_ND_ARPT", 0) SmallOverheadPushButtons () DspShow ("ND", "ARPT") end function ND_ARPT_toggle () if ipc.readLvar("L:AB_MPL_ND_ARPT") == 0 then ND_ARPT_on () else ND_ARPT_off () end end function ND_DATA_toggle () ND_Data_CSTR = ipc.readLvar("L:AB_MPL_ND_CSTR") ND_Data_WPT = ipc.readLvar("L:AB_MPL_ND_WPT") ND_Data_VOR = ipc.readLvar("L:AB_MPL_ND_VOR") ND_Data_NDB = ipc.readLvar("L:AB_MPL_ND_NDB") ND_Data_ARPT = ipc.readLvar("L:AB_MPL_ND_ARPT") if ND_Data_CSTR == 1 then ND_DATAvar = 1 elseif ND_Data_WPT == 1 then ND_DATAvar = 2 elseif ND_Data_VOR == 1 then ND_DATAvar = 3 elseif ND_Data_NDB == 1 then ND_DATAvar = 4 elseif ND_Data_ARPT == 1 then ND_DATAvar = 5 end if ND_DATAvar == 1 then ND_WPT_on () elseif ND_DATAvar == 2 then ND_VOR_on () elseif ND_DATAvar == 3 then ND_NDB_on () elseif ND_DATAvar == 4 then ND_ARPT_on () elseif ND_DATAvar == 5 then ND_CSTR_on () end end function ND_MODE_show () NGrng = ipc.readLvar("L:AB_MPL_ND_Mode") if NGrng == 0 then NDmodeTxt = "LS" elseif NGrng == 1 then NDmodeTxt = "VOR" elseif NGrng == 2 then NDmodeTxt = "NAV" elseif NGrng == 3 then NDmodeTxt = "ARC" elseif NGrng == 4 then NDmodeTxt = "PLAN" end DspShow ("NDmd", NDmodeTxt) end function ND_MODE_inc () nd_mode = nd_mode + 1 if nd_mode > 4 then nd_mode = 4 end ipc.writeLvar("L:AB_MPL_ND_Mode", nd_mode) ASC_KnobRotate () ND_MODE_show () end function ND_MODE_dec () nd_mode = nd_mode - 1 if nd_mode < 0 then nd_mode = 0 end ipc.writeLvar("L:AB_MPL_ND_Mode", nd_mode) ASC_KnobRotate () ND_MODE_show () end function ND_RANGE_show () NGrng = ipc.readLvar("L:AB_MPL_ND_Range") if NGrng == 0 then NDrngTxt = "10" elseif NGrng == 1 then NDrngTxt = "20" elseif NGrng == 2 then NDrngTxt = "40" elseif NGrng == 3 then NDrngTxt = "80" elseif NGrng == 4 then NDrngTxt = "160" elseif NGrng == 5 then NDrngTxt = "320" end DspShow ("NDrg", NDrngTxt) end function ND_RANGE_inc () i = ipc.readLvar("L:AB_MPL_ND_Range") if i < 5 then ipc.writeLvar("L:AB_MPL_ND_Range", i+1) ipc.sleep(10) ASC_KnobRotate () ND_RANGE_show () end end function ND_RANGE_dec () i = ipc.readLvar("L:AB_MPL_ND_Range") if i > 0 then ipc.writeLvar("L:AB_MPL_ND_Range", i-1) ipc.sleep(10) ASC_KnobRotate () ND_RANGE_show () end end function ND_ARROW1_vor () LVarSet = "L:AB_MPL_ND_Arrow1" ipc.writeLvar(LVarSet, 0) DspShow ("VOR", " 1 ") LightSwitch () end function ND_ARROW1_adf () LVarSet = "L:AB_MPL_ND_Arrow1" ipc.writeLvar(LVarSet, 2) DspShow ("ADF", " 1 ") LightSwitch () end function ND_ARROW1_off () LVarSet = "L:AB_MPL_ND_Arrow1" ipc.writeLvar(LVarSet, 1) LightSwitch () end function ND_ARROW2_vor () LVarSet = "L:AB_MPL_ND_Arrow2" ipc.writeLvar(LVarSet, 0) DspShow ("VOR", " 2 ") LightSwitch () end function ND_ARROW2_adf () LVarSet = "L:AB_MPL_ND_Arrow2" ipc.writeLvar(LVarSet, 2) LightSwitch () DspShow ("ADF", " 2 ") end function ND_ARROW2_off () LVarSet = "L:AB_MPL_ND_Arrow2" ipc.writeLvar(LVarSet, 1) LightSwitch () end function ND_ARROW1_right () NDArr1 = ipc.readLvar("AB_MPL_ND_Arrow1") if NDArr1 == 2 then ND_ARROW1_off () elseif NDArr1 == 1 then ND_ARROW1_vor () end end function ND_ARROW1_left () NDArr1 = ipc.readLvar("AB_MPL_ND_Arrow1") if NDArr1 == 0 then ND_ARROW1_off () elseif NDArr1 == 1 then ND_ARROW1_adf () end end function ND_ARROW2_right () NDArr2 = ipc.readLvar("AB_MPL_ND_Arrow2") if NDArr2 == 2 then ND_ARROW2_off () elseif NDArr2 == 1 then ND_ARROW2_vor () end end function ND_ARROW2_left () NDArr2 = ipc.readLvar("AB_MPL_ND_Arrow2") if NDArr2 == 0 then ND_ARROW2_off () elseif NDArr2 == 1 then ND_ARROW2_adf () end end And assign the new "toggle" function to the EFIS buttons as required. Regards, Peter Please delete the assignments which do not work ("remove assignment"), save it and reassign it. My problem is, that I don't find a function for VS-pull or VS-push. I just found "Autopilot VS level" which will be the push operation, or? Regards, Peter : : : aviation.pero-online.deDeveloper of SIMstarter NG P3D & Homecockpit Builder
December 30, 201213 yr Guenter please see post number 7 for what I think the VS mode L:Var function is called, I would have coded it myself but I have no idea what your code is doing for the VS level. The lines with the word select in them have me confused, and I was also unfamiliar with what ever you were doing with ALTmode. function Autopilot_VS_level () ipc.writeLvar("AB_AP_ALTmode", -1) ipc.sleep(10) ipc.writeLvar("AB_AP_VS_Select2", 0) ipc.sleep(10) ipc.writeLvar("AB_AP_VS_Select3", 0) DspShow ("VS", "lvl") Button3 () end Cheers, Andy.
January 1, 201313 yr I've found another bug, whenever I use any of the cabin light options or panel light options via LINDA it always turns off the beacon lights and Nav lights too. If I use the default MSFS options to toggle cabin lights or Panel lights via FSUIPC it works perfectly and doesn't switch off the beacon and nav light, so I presume its an error in the script somewhere. Cheers, Andy.
January 3, 201313 yr Author ok, I'm on this, but I have unfortunately no solution with VS level. I'll ask the devs about. If anyone else has the solution, it would be welcome! For the lights I just could say that it is working here ... hmmm :huh: the nex ND functions are implemented, thanks Capt. PERO Guenter Steiner -------------------------------------------------------------------------------------- Betatester for: A2A, LORBY, FSR-Pillow Tester --------------------------------------------------------------------------------------
January 4, 201313 yr Author I have just seen accidently in the german AXE forum, that this light issue is a new bug in the Bus. So, you have to wait ill they'll fix that ... Guenter Steiner -------------------------------------------------------------------------------------- Betatester for: A2A, LORBY, FSR-Pillow Tester --------------------------------------------------------------------------------------
January 4, 201313 yr OK thanks for the info, hopefully they can fix it and implement the VS mode L:Var if they haven't already. Cheers, Andy.
January 4, 201313 yr Author Had a little conversation: The devs says, the variable AB_AP_VSlevel is working with 1 and -1 In my script it does not. I have tried just a plain simple function: function Autopilot_VS_level () ipc.writeLvar("AB_AP_VSlevel", 1) end you can change 1 for -1 also, but it doesn't work here. Anybody an idea? Guenter Steiner -------------------------------------------------------------------------------------- Betatester for: A2A, LORBY, FSR-Pillow Tester --------------------------------------------------------------------------------------
January 4, 201313 yr If its not working then it sounds like be a bug in the Airbus X, its certainly worth mentioning it to them. Does it not work when you toggle those variables 1 and -1 with the Linda Tracer? If not then its not working as they expect and to me that would be a bug. I'm sure its not a difficult fix for them, probably just a small error. Cheers, Andy.
January 4, 201313 yr Author Yep, that is what I told them (that it doesn't work with LINDA tracer), but they say it does work. In the bus itself (in the VC), the VS level does also work of course, but I can't see any other Lua Variable then the above who could be responsible for this ... Will try later again. If anybody else could/would try it, would be also nice Guenter Steiner -------------------------------------------------------------------------------------- Betatester for: A2A, LORBY, FSR-Pillow Tester --------------------------------------------------------------------------------------
January 4, 201313 yr Have you tried the one I posted earlier in the thread i.e. L:AB_AP_VSenb to me that stands for VS enable, I'm probably wrong though. Aerosoft have no excuse not to try this for themselves really, they sell VRi MCP hardware, you think they would at least try it. I had a quick try the other week with the above L:Var but I had no idea what to do because I wasn't sure what the select lines were doing in the script, I tried using 1 and 0 (while on the ground) and I could not see anything happening to the knob like you could when VSLevel was triggered, so I presumed it wasn't working, certainly no numbers appeared in the VS window like you get when you push or pull (not sure which) the dial in the VC. Cheers, Andy.
January 4, 201313 yr Author I had a quick try the other week with the above L:Var but I had no idea what to do because I wasn't sure what the select lines were doing in the script, I tried using 1 and 0 (while on the ground) and I could not see anything happening to the knob like you could when VSLevel was triggered, so I presumed it wasn't working, certainly no numbers appeared in the VS window like you get when you push or pull (not sure which) the dial in the VC. Yep, same behave here. If you try my simplified function above, you'll get the same result. You can run the function fast for several times, then sometimes the knob is moving, but nothing happens at all. I searched for the L:AB_AP_VSenb but it isn't listed in the Airbus X Lvars... Will look again, maybe I have overseen it. Guenter Steiner -------------------------------------------------------------------------------------- Betatester for: A2A, LORBY, FSR-Pillow Tester --------------------------------------------------------------------------------------
January 5, 201313 yr Author Tried again, but no success with VS Level! Tried also VSenb and have searched for other possible variables, but nothing works. So, if anybody has an idea/solution, it is very welcome Guenter Steiner -------------------------------------------------------------------------------------- Betatester for: A2A, LORBY, FSR-Pillow Tester --------------------------------------------------------------------------------------
January 6, 201313 yr Commercial Member Problem with APPR and LOC: If you activate LOC or APPR the opposite (LOC or APPR) should switch off. If you press it at the Virtual Cockpit it works correct, but not within LINDA. So please replace this to functions: function Autopilot_APPR_on () -- Switch off LOC if on if ipc.readLvar("L:AB_AP_LOC") == 1 then Autopilot_LOC_off () end -- Switch on LOC LVarSet = "L:AB_AP_LOC2" ipc.writeLvar(LVarSet, 1) SmallOverheadPushButtons () DspShow ("APPR", "on") end function Autopilot_LOC_on () -- Switch off APP if on if ipc.readLvar("L:AB_AP_LOC2") == 1 then Autopilot_APPR_off () end -- Switch on LOC LVarSet = "L:AB_AP_LOC" ipc.writeLvar(LVarSet, 1) SmallOverheadPushButtons () DspShow ("LOC", "on") end : : : aviation.pero-online.deDeveloper of SIMstarter NG P3D & Homecockpit Builder
January 6, 201313 yr Commercial Member VS Pull / Push: Maybe this one? function Autopilot_VS_push () ipc.writeLvar("AB_AP_ALTmode", 1) DspShow ("VS", "mgnt") Button3 () end MCPII and MCP difference at AB_AP_VS_show (): Can someone please add a DspShow for the MCP Combo I users... I don't understand how it works?! ;O) An example function would be nice to differentiate if it is Version 1 or Version 2 MCP... Regards, Peter : : : aviation.pero-online.deDeveloper of SIMstarter NG P3D & Homecockpit Builder
Archived
This topic is now archived and is closed to further replies.