Jump to content
The simFlight Network Forums

guenseli

Moderators
  • Posts

    464
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by guenseli

  1. found it: ipc.writeLvar("L:AS_FADEC_0", ipcPARAM*-2) this is now the correct behave without reversers! seems to work perfect so far here with my saitek throttle! thanks, Pete!!!
  2. No, you are completely wrong :mrgreen: Thats the difference between a programmer (you) and a graphic designer (me): abstract thinking! I can fiddle out the Variables from addons and compile them together using existing codes. But I'm not able to figure out new calculations and program codes! No way! I couldn't... :roll: But I can find nice colors for the codes, if you like :lol: (But to be honest, I have found out where the ")" belongs, but haven't reported it immediately :wink: ) I have played around a bit and it is working very well! Better than fiddling around with detends... Also TOGA and Idle is working here Only the range of the throttles isn't suitable for me as I don't want to have reversers there. Reversers work with "F2" in the Bus... I will try a bit with the range when I have time! thanks, Pete!!! many Airbus customers will be happy about that possibility! :mrgreen:
  3. Hi Pete, The values I got seem to show a wider range than you found. I don't know why. I did try -32768 to +32768, -32768 is not working. I have had similar, but I don't remember what :oops: thats, why TOGA is in my LUA at just -32000 The LUA had a little trick inside :wink: took me one and a half hour to fiddle out... If you enter TOGA, the autothrust kicks automatically in. That means, first FADEC_0 reaches TOGA, TOGA kicks in and most of the time FADEC_1 didn't make it to 100% throttle, because it was stopped at present position. Thats why I have included ipc.control(65596) (full throttle). And this behave, that TOGA kicks in, is maybe why you can't get back to idle? regarding your throttle LUAs: I have installed it and the very first time there was a reaction. Engines spooled up a bit, but haven't look very concentrated at this time on them. I wanted to try it out then, but after this first little one there was no more reaction. I restarted FSX but I can't get any more reaction from the throttles... :?: EDIT: the log says there's a missing ")"? could it be, that the lines are ipc.writeLvar("L:AS_FADEC_0"), 4096 - (9 * ipcPARAM / 4)? The reaction at my first attempt mustn't be because of your LUA... it was just in the very first seconds after loading the flight when I moved the throttle. But maybe some other throttle was interferring there or whatever... below is the log of the last attempts I have assigned both LUAs to one throttle and also just one LUA to a throttle, no difference regards, Günter ********* LUA: "AirbusX_Thr1" Log [from FSUIPC version 4.626] ********* 457645 System time = 09/09/2010 09:39:16, Simulator time = 09:33:44 (07:33Z) 457645 LUA: beginning "F:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Modules\AirbusX_Thr1.lua" 457645 *** LUA Error: ...6)\Microsoft Games\Microsoft Flight Simulator X\Modules\AirbusX_Thr1.lua:1: ')' expected near '' 457645 LUA: ended "F:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Modules\AirbusX_Thr1.lua" 457645 System time = 09/09/2010 09:39:16, Simulator time = 09:33:44 (07:33Z) ********* LUA execution terminated: Log Closed ********* ********* LUA: "AirbusX_Thr1" Log [from FSUIPC version 4.626] ********* 457769 System time = 09/09/2010 09:39:16, Simulator time = 09:33:44 (07:33Z) 457769 LUA: beginning "F:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Modules\AirbusX_Thr1.lua" 457769 *** LUA Error: ...6)\Microsoft Games\Microsoft Flight Simulator X\Modules\AirbusX_Thr1.lua:1: ')' expected near '' 457769 LUA: ended "F:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Modules\AirbusX_Thr1.lua" 457769 System time = 09/09/2010 09:39:16, Simulator time = 09:33:44 (07:33Z) ********* LUA execution terminated: Log Closed ********* ********* LUA: "AirbusX_Thr1" Log [from FSUIPC version 4.626] ********* 457847 System time = 09/09/2010 09:39:16, Simulator time = 09:33:44 (07:33Z) 457847 LUA: beginning "F:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Modules\AirbusX_Thr1.lua" 457847 *** LUA Error: ...6)\Microsoft Games\Microsoft Flight Simulator X\Modules\AirbusX_Thr1.lua:1: ')' expected near '' 457847 LUA: ended "F:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Modules\AirbusX_Thr1.lua" 457847 System time = 09/09/2010 09:39:16, Simulator time = 09:33:44 (07:33Z) ********* LUA execution terminated: Log Closed ********* ********* LUA: "AirbusX_Thr2" Log [from FSUIPC version 4.626] ********* 457645 System time = 09/09/2010 09:39:16, Simulator time = 09:33:44 (07:33Z) 457645 LUA: beginning "F:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Modules\AirbusX_Thr2.lua" 457645 *** LUA Error: ...6)\Microsoft Games\Microsoft Flight Simulator X\Modules\AirbusX_Thr2.lua:1: ')' expected near '' 457645 LUA: ended "F:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Modules\AirbusX_Thr2.lua" 457645 System time = 09/09/2010 09:39:16, Simulator time = 09:33:44 (07:33Z) ********* LUA execution terminated: Log Closed ********* ********* LUA: "AirbusX_Thr2" Log [from FSUIPC version 4.626] ********* 457769 System time = 09/09/2010 09:39:16, Simulator time = 09:33:44 (07:33Z) 457769 LUA: beginning "F:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Modules\AirbusX_Thr2.lua" 457769 *** LUA Error: ...6)\Microsoft Games\Microsoft Flight Simulator X\Modules\AirbusX_Thr2.lua:1: ')' expected near '' 457769 LUA: ended "F:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Modules\AirbusX_Thr2.lua" 457769 System time = 09/09/2010 09:39:16, Simulator time = 09:33:44 (07:33Z) ********* LUA execution terminated: Log Closed ********* ********* LUA: "AirbusX_Thr2" Log [from FSUIPC version 4.626] ********* 457847 System time = 09/09/2010 09:39:16, Simulator time = 09:33:44 (07:33Z) 457847 LUA: beginning "F:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Modules\AirbusX_Thr2.lua" 457847 *** LUA Error: ...6)\Microsoft Games\Microsoft Flight Simulator X\Modules\AirbusX_Thr2.lua:1: ')' expected near '' 457847 LUA: ended "F:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Modules\AirbusX_Thr2.lua" 457847 System time = 09/09/2010 09:39:16, Simulator time = 09:33:44 (07:33Z) ********* LUA execution terminated: Log Closed *********
  4. Pete (and all), I have updated my initial post, because I've finished my LUA for the throttle detends. That was done, before I recognized the above thread. Right now I will try your idea, Pete, and will report back....
  5. Hi Paul, thanks for your response. Seems we have a problem with bigger LUA files (like mine) and maybe slower systems? How fast is your PC? I have no problems at all with my VRInsight MCP Combi. My PC is a Q6600@3,4 Ghz with a 8800GTS Or we have maybe there a problem how GoFlight will handle or response to this LUA... I'm sure, Pete will jump in to advice us what the best solution is. The idea with the faster HDG is good. I have set it on the TO DO list for an update of my LUA file; I also will implement a faster SPD rotation! Please don't use KAPTEJNLNs LUA, because then we have no chance to fiddle out whats going on. He is using non existing LUA variables, but he wouldn't believe me :lol: btw I have had such behave with other addons using LUA in former times - month' ago. My system hasn't changed since, but there where several updates of FSUIPC. Means I know what you are talking about, but I don't know what solved the issue on my side...
  6. There is no "L:AB_AP_SPDSTEP"!!! I have just controlled it! So, your conclusion to solve your problems with inserting this lines is wrong. And your are simply lucky that your script is working!
  7. You haven't searched for LUA variables yourself? You haven't got the variables from Finn rom Aerosoft? LVarSPD = ipc.readLvar("L:AB_AP_SPDSTEP") LVarSet = "L:AB_AP_SPEED_Select" LVarGet = ipc.readLvar(LVarSet) if LVarSPD == 0 then ipc.writeLvar(LVarSet, LVarGet+10) end As SPDSTEP does not exist, the red lines are total useless! Of course, then the summary of LVarSPD = ipc.readLvar("L:AB_AP_SPDSTEP") is zero, thats why it is working... Beside this, your code is not different from my code, beside the fact, that you put it into separate files....
  8. where do you have the Variable "L:AB_AP_SPDSTEP" from???? you have just talked about ALTSTEP which exists, but NOT SPDSTEP (as far as I know)
  9. where do you have the Variable "L:AB_AP_SPDSTEP" from? As far as I know this variable does not exist...? Are you still able to set your SPD?
  10. Thats normal for nearly every bit more complex aircraft... has nothing to do with a general overload. Is here also!
  11. Lars, one idea comes to my mind: try to insert a delay into your LUA file (or lau file if you prefer that spelling :mrgreen: ) example: if ipcPARAM == 48 then LVarSet = "L:AB_AP_ALT_Select" LVarGet = ipc.readLvar(LVarSet) ipc.writeLvar(LVarSet, LVarGet+100) ipc.sleep(100) end ipc.sleep(100) means theres a 100 millisecond pause. you can play around with it; try maybe also 10 or 50 milliseconds...or more e.g. 200...? of course you have to insert that in every command which you are using your rotary switches... 49, 50 etc
  12. Pete, thanks for the sticky! I have sent you a mail! greetings, Günter
  13. update 16th Sept and another one: several new commands: TCAS, Battery, "Avionics" etc... new items since release are marked in the parameter list updated 15th of Sept inserted parameters for fast increase and decrease of SPD (36, 37) and HDG (25, 26) (see list of parameters) (credits to PaulMidd for this idea!) you have to redownload AS_AirbusX.txt and copy the content into your LUA updated 14th of September reason: added Petes throttle plugins updated 8th of Sept. reason: added code for throttle detends ------------------------------------------------------ I have written a LUA Script during Betatest because Finn from Aerosoft provided me nicely with the LUA Variables. You can assign this functions via a registered copy of FSUIPC Here's a very short tutorial how to "install" LUA files I copied this tutorial out of one of my stickies in the FSUIPC forum. The "tutorial" is for the PMDG J41, but thats just a case of naming. Simply change "J41" to "AS_AirbusX" or whatever you like. To get acces to the single commands you have to do the following: 1) copy the code below 2) insert it into an empty editor or wordpad file and save it as e.g. AS_AirbusX.LUA into the FSX - Modules Folder 3) open FSUIPC menu and choose LUA AirbusX from the drop down 4) insert different parameter numbers depending on the action you want (green field) (this example picture is for the J41. For the AirbusX you have to name the file of course AS_AirbusX.LUA or whatever. Then the name in the dropdown (red field) will be Lua AS_AirbusX)! Note: I have to make slight corrections the next days/weeks (depends on my time), e.g. some switch sounds are not fitting. You can already "install" this LUA script, the parameter number will NOT change with a newer version. You simply have to overwrite this one when a new LUA Script will be provided. All functions are for ON/OFF or toggle switches, whatever fits your hardware. Please have a close look into FSUIPC manual. Every question regearding LUA or FSUIPC is answered there!!! Here is a list which function are in this LUA file: -- List of parameters -- -- Autopilot ----------- -- -- 1 AP1 button on -- 2 AP1 button off -- 3 AP1 button toggle -- 4 AP2 button on -- 5 AP2 button off -- 6 AP2 button toggle -- 7 ATHR button on -- 8 ATHR button off -- 9 ATHR button toggle -- 10 AP LOC button on -- 11 AP LOC button off -- 12 AP LOC button toggle -- 13 AP APPR button on -- 14 AP APPR button off -- 15 AP APPR button toggle -- 16 AP EXPED button on -- 17 AP EXPED button off -- 18 AP EXPED button toggle -- 20 Heading mode selection; normal -- 21 Heading mode selection: managed -- 22 Heading mode selection normal/managed toggle -- 23 Heading inc -- 24 Heading dec -- 25 Heading inc fast -- 26 Heading dec fast -- 30 Speed/mach mode selection toggle -- 31 Speed mode selection; normal -- 32 Speed mode selection: managed -- 33 Speed mode selection normal/managed toggle -- 34 Speed or Mach inc -- 35 Speed or Mach dec -- 36 Speed or Mach inc fast -- 37 Speed or Mach dec fast -- 40 Altitude rate selection toggle (100/1000) -- 41 Altitude rate selection slow (100) -- 42 Altitude rate selection fast (1000) -- 43 Altitude mode selection: normal -- 44 Altitude mode selection: managed -- 45 Altitude mode selection normal/managed toggle -- 46 ALT inc slow or fast -- 47 ALT dec slow or fast -- 48 ALT inc slow (100) -- 49 ALT inc fast (1000) -- 50 ALT dec slow (100) -- 51 ALT dec fast (1000) -- 52 V/S Level -- 53 V/S inc -- 54 V/S dec -- 60 F/D ON -- 61 F/D OFF -- 62 F/D Toggle -- 63 LS ON -- 64 LS OFF -- 65 LS Toggle -- -- Navigations Display (ND)--------------------------------- -- -- 70 CSTR on -- 71 WPT on -- 72 VOR on -- 73 NDB on -- 74 ARPT on -- 80 Nd Mode inc -- 81 Nd Mode dec -- 82 Nd Range inc -- 83 Nd Range dec -- 90 VOR1 button on -- 91 ADF1 button on -- 92 VOR/ADF1 button off -- 93 VOR2 button on -- 94 ADF2 button on -- 95 VOR/ADF2 button off -- 96 BARO/STD toggle -- 97 Master Warning off -- 98 Master Caution off -- 99 Master Warning AND Caution off -- -- lights and signs ------------------------------------------ -- -- 100 strobe on -- 101 strobe auto -- 102 strobe off -- 103 strobe toggle on/off -- Beacon: Uses standard FSX assignment i.e: (A:LIGHT BEACON, bool) -- Winglights:Uses standard FSX assignment i.e: (A:LIGHT WING, bool) -- NAV / Logo lights:Uses standard FSX assignment i.e: (A:LIGHT NAV, bool);(A:LIGHT LOGO, bool) -- (Note !! Both are tswitched with the same switch) -- 104 Runway lights on -- 105 Runway lights off -- 106 Landing light retracted -- 107 Landing light on -- 108 Landing light off -- 109 Landing light toggle on/off -- 110 Taxi light off -- 111 Taxi light on -- 112 Taxi light T.O -- 113 Taxi light toggle off/T.O --Panel lights:Uses standard FSX assignment i.e: (A:LIGHT PANEL, bool) -- 114 seat sign off -- 115 seat sign auto -- 116 seat sign on -- 117 seat sign toggle off/on -- 118 smoke sign off -- 119 smoke sign auto -- 120 smoke sign on -- 121 smoke sign toggle off/on -- 122 emergency light off -- 123 emergency light armed -- 124 emergency light on -- -- systems ------------------------------------------ -- -- 130 APU Master on -- 131 APU Master off -- 132 Master toggle -- 133 APU Start on -- 134 APU Start off -- 135 STart toggle -- 136 APU Master AND Start toggle -- 140 Autobrake inc -- 141 Autobrake dec -- 142 Autobrake MAX -- 143 Autobrake OFF -- 144 Autobrake MIN -- 145 Autobrake MED -- 148 TCAS dial inc -- 149 TCAS dial dec -- 150 Engine1 Master on -- 151 Engine1 Master off -- 152 Engine1 Master toggle -- 153 Engine2 Master on -- 154 Engine2 Master off -- 155 Engine2 Master toggle -- 156 IGN on -- 157 IGN off -- 158 IGN toggle -- -- ECAM ------------------------------------------ -- -- 160 ECAM ENG -- 161 ECAM BLEED -- 162 ECAM PRESS -- 163 ECAM ELEC -- 164 ECAM HYD -- 165 ECAM FUEL -- 166 ECAM APU -- 167 ECAM COND -- 168 ECAM DOOR -- 169 ECAM WHEEL -- 170 ECAM FCTL -- 171 ECAM ALL -- 175 ECAM CLR -- 176 ECAM RCL -- 180 ECAM TO config -- 185 ECAM, PFDs, NDs, Radio on ("avionics") -- 186 ECAM, PFDs, NDs, Radio off ("avionics") -- -- further systems ------------------------------------------ -- -- 190 APU Bleed on -- 191 APU Bleed off -- 192 APU Bleed toggle -- 200 BAT1 on -- 201 BAT1 off -- 202 BAT1 toggle -- 203 BAT2 on -- 204 BAT2 off -- 205 BAT2 toggle -- 206 BAT1+2 on -- 207 BAT1+2 off -- 208 BAT1+2 toggle -- Aerosoft AirbusX -- LUA Script V 1.2 -- Friday, the 16th, 2010 ;-) -- (C) Guenter Steiner/guenseli -- List of parameters -- -- Autopilot ----------- -- -- 1 AP1 button on -- 2 AP1 button off -- 3 AP1 button toggle -- 4 AP2 button on -- 5 AP2 button off -- 6 AP2 button toggle -- 7 ATHR button on -- 8 ATHR button off -- 9 ATHR button toggle -- 10 AP LOC button on -- 11 AP LOC button off -- 12 AP LOC button toggle -- 13 AP APPR button on -- 14 AP APPR button off -- 15 AP APPR button toggle -- 16 AP EXPED button on -- 17 AP EXPED button off -- 18 AP EXPED button toggle -- 20 Heading mode selection; normal -- 21 Heading mode selection: managed -- 22 Heading mode selection normal/managed toggle -- 23 Heading inc -- 24 Heading dec -- 25 Heading inc fast -- 26 Heading dec fast -- 30 Speed/mach mode selection toggle -- 31 Speed mode selection; normal -- 32 Speed mode selection: managed -- 33 Speed mode selection normal/managed toggle -- 34 Speed or Mach inc -- 35 Speed or Mach dec -- 36 Speed or Mach inc fast -- 37 Speed or Mach dec fast -- 40 Altitude rate selection toggle (100/1000) -- 41 Altitude rate selection slow (100) -- 42 Altitude rate selection fast (1000) -- 43 Altitude mode selection: normal -- 44 Altitude mode selection: managed -- 45 Altitude mode selection normal/managed toggle -- 46 ALT inc slow or fast -- 47 ALT dec slow or fast -- 48 ALT inc slow (100) -- 49 ALT inc fast (1000) -- 50 ALT dec slow (100) -- 51 ALT dec fast (1000) -- 52 V/S Level -- 53 V/S inc -- 54 V/S dec -- 60 F/D ON -- 61 F/D OFF -- 62 F/D Toggle -- 63 LS ON -- 64 LS OFF -- 65 LS Toggle -- -- Navigations Display (ND)--------------------------------- -- -- 70 CSTR on -- 71 WPT on -- 72 VOR on -- 73 NDB on -- 74 ARPT on -- 80 Nd Mode inc -- 81 Nd Mode dec -- 82 Nd Range inc -- 83 Nd Range dec -- 90 VOR1 button on -- 91 ADF1 button on -- 92 VOR/ADF1 button off -- 93 VOR2 button on -- 94 ADF2 button on -- 95 VOR/ADF2 button off -- 96 BARO/STD toggle -- 97 Master Warning off -- 98 Master Caution off -- 99 Master Warning AND Caution off -- -- lights and signs ------------------------------------------ -- -- 100 strobe on -- 101 strobe auto -- 102 strobe off -- 103 strobe toggle on/off -- Beacon: Uses standard FSX assignment i.e: (A:LIGHT BEACON, bool) -- Winglights:Uses standard FSX assignment i.e: (A:LIGHT WING, bool) -- NAV / Logo lights:Uses standard FSX assignment i.e: (A:LIGHT NAV, bool);(A:LIGHT LOGO, bool) -- (Note !! Both are tswitched with the same switch) -- 104 Runway lights on -- 105 Runway lights off -- 106 Landing light retracted -- 107 Landing light on -- 108 Landing light off -- 109 Landing light toggle on/off -- 110 Taxi light off -- 111 Taxi light on -- 112 Taxi light T.O -- 113 Taxi light toggle off/T.O --Panel lights:Uses standard FSX assignment i.e: (A:LIGHT PANEL, bool) -- 114 seat sign off -- 115 seat sign auto -- 116 seat sign on -- 117 seat sign toggle off/on -- 118 smoke sign off -- 119 smoke sign auto -- 120 smoke sign on -- 121 smoke sign toggle off/on -- 122 emergency light off -- 123 emergency light armed -- 124 emergency light on -- -- systems ------------------------------------------ -- -- 130 APU Master on -- 131 APU Master off -- 132 Master toggle -- 133 APU Start on -- 134 APU Start off -- 135 STart toggle -- 136 APU Master AND Start toggle -- 140 Autobrake inc -- 141 Autobrake dec -- 142 Autobrake MAX -- 143 Autobrake OFF -- 144 Autobrake MIN -- 145 Autobrake MED -- 148 TCAS dial inc -- 149 TCAS dial dec -- 150 Engine1 Master on -- 151 Engine1 Master off -- 152 Engine1 Master toggle -- 153 Engine2 Master on -- 154 Engine2 Master off -- 155 Engine2 Master toggle -- 156 IGN on -- 157 IGN off -- 158 IGN toggle -- -- ECAM ------------------------------------------ -- -- 160 ECAM ENG -- 161 ECAM BLEED -- 162 ECAM PRESS -- 163 ECAM ELEC -- 164 ECAM HYD -- 165 ECAM FUEL -- 166 ECAM APU -- 167 ECAM COND -- 168 ECAM DOOR -- 169 ECAM WHEEL -- 170 ECAM FCTL -- 171 ECAM ALL -- 175 ECAM CLR -- 176 ECAM RCL -- 180 ECAM TO config -- 185 ECAM, PFDs, NDs, Radio on ("avionics") -- 186 ECAM, PFDs, NDs, Radio off ("avionics") -- -- further systems ------------------------------------------ -- -- 190 APU Bleed on -- 191 APU Bleed off -- 192 APU Bleed toggle -- 200 BAT1 on -- 201 BAT1 off -- 202 BAT1 toggle -- 203 BAT2 on -- 204 BAT2 off -- 205 BAT2 toggle -- 206 BAT1+2 on -- 207 BAT1+2 off -- 208 BAT1+2 toggle -------------------------------------------------------------- Autopilot (FCU) -------------------------------------------------------------- AP1 -- AP1 button on if ipcPARAM == 1 then LVarSet = "L:AB_AP_AP1" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- AP1 button off if ipcPARAM == 2 then LVarSet = "L:AB_AP_AP1" ipc.writeLvar(LVarSet, 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- AP1 button toggle if ipcPARAM == 3 then LVarSet = "L:AB_AP_AP1" val = 0 if ipc.readLvar(LVarSet) == 0 then val = 1 end ipc.writeLvar(LVarSet, val) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -------------------------------------------------------------- AP2 -- AP2 button on if ipcPARAM == 4 then LVarSet = "L:AB_AP_AP2" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- AP2 button off if ipcPARAM == 5 then LVarSet = "L:AB_AP_AP2" ipc.writeLvar(LVarSet, 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- AP2 button toggle if ipcPARAM == 6 then LVarSet = "L:AB_AP_AP2" val = 0 if ipc.readLvar(LVarSet) == 0 then val = 1 end ipc.writeLvar(LVarSet, val) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -------------------------------------------------------------- ATHR -- ATHR button on if ipcPARAM == 7 then LVarSet = "L:AB_AP_ATHR" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ATHR button off if ipcPARAM == 8 then LVarSet = "L:AB_AP_ATHR" ipc.writeLvar(LVarSet, 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ATHR button toggle if ipcPARAM == 9 then LVarSet = "L:AB_AP_ATHR" val = 0 if ipc.readLvar(LVarSet) == 0 then val = 1 end ipc.writeLvar(LVarSet, val) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -------------------------------------------------------------- AP LOC -- AP LOC button on if ipcPARAM == 10 then LVarSet = "L:AB_AP_LOC" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- AP LOC button off if ipcPARAM == 11 then LVarSet = "L:AB_AP_LOC" ipc.writeLvar(LVarSet, 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- AP LOC button toggle if ipcPARAM == 12 then LVarSet = "L:AB_AP_LOC" val = 0 if ipc.readLvar(LVarSet) == 0 then val = 1 end ipc.writeLvar(LVarSet, val) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -------------------------------------------------------------- AP APPR -- AP APPR button on if ipcPARAM == 13 then LVarSet = "L:AB_AP_LOC2" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- AP APPR button off if ipcPARAM == 14 then LVarSet = "L:AB_AP_LOC2" ipc.writeLvar(LVarSet, 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- AP APPR button toggle if ipcPARAM == 15 then LVarSet = "L:AB_AP_LOC2" val = 0 if ipc.readLvar(LVarSet) == 0 then val = 1 end ipc.writeLvar(LVarSet, val) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -------------------------------------------------------------- AP EXPED -- AP EXP button on if ipcPARAM == 16 then LVarSet = "L:AB_AP_EXP" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- AP EXP button off if ipcPARAM == 17 then LVarSet = "L:AB_AP_EXP" ipc.writeLvar(LVarSet, 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- AP EXP button toggle if ipcPARAM == 18 then LVarSet = "L:AB_AP_EXP" val = 0 if ipc.readLvar(LVarSet) == 0 then val = 1 end ipc.writeLvar(LVarSet, val) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -------------------------------------------------------------- HDG -- Heading mode selection: normal if ipcPARAM == 20 then LVarSet = "L:AB_AP_HDGmode" ipc.writeLvar(LVarSet, -1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- Heading mode selection: managed if ipcPARAM == 21 then LVarSet = "L:AB_AP_HDGmode" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- Heading mode selection normal/managed toggle if ipcPARAM == 22 then LVarSet = "L:AB_AP_HDGmode_set" LVarGet = ipc.readLvar(LVarSet) val = 1 if ipc.readLvar(LVarSet) == 1 then val = -1 end ipc.writeLvar(LVarSet, val) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- Heading inc if ipcPARAM == 23 then LVarSet = "L:AB_AP_HDG_Select" LVarGet = ipc.readLvar(LVarSet) ipc.writeLvar(LVarSet, LVarGet+1) end -- Heading dec if ipcPARAM == 24 then LVarSet = "L:AB_AP_HDG_Select" LVarGet = ipc.readLvar(LVarSet) ipc.writeLvar(LVarSet, LVarGet-1) end -- Heading inc fast if ipcPARAM == 25 then LVarSet = "L:AB_AP_HDG_Select" LVarGet = ipc.readLvar(LVarSet) ipc.writeLvar(LVarSet, LVarGet+10) end -- Heading dec fast if ipcPARAM == 26 then LVarSet = "L:AB_AP_HDG_Select" LVarGet = ipc.readLvar(LVarSet) ipc.writeLvar(LVarSet, LVarGet-10) end -------------------------------------------------------------- SPD -- Speed/mach mode selection toggle if ipcPARAM == 30 then LVarSet = "L:AB_AP_SPDMACH" LVarGet = ipc.readLvar(LVarSet) val = 1 if ipc.readLvar(LVarSet) == 1 then val = 0 end ipc.writeLvar(LVarSet, val) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- Speed mode selection: normal if ipcPARAM == 31 then LVarSet = "L:AB_AP_SPDmode" ipc.writeLvar(LVarSet, -1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- Speed mode selection: managed if ipcPARAM == 32 then LVarSet = "L:AB_AP_SPDmode" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- Speed mode selection normal/managed toggle if ipcPARAM == 33 then LVarSet = "L:AB_AP_SPDmode_set" LVarGet = ipc.readLvar(LVarSet) val = 1 if ipc.readLvar(LVarSet) == 1 then val = -1 end ipc.writeLvar(LVarSet, val) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- speed or mach inc if ipcPARAM == 34 then LVarSPD = ipc.readLvar("L:AB_AP_SPDMACH") if LVarSPD == 0 then LVarSet = "L:AB_AP_SPEED_Select" LVarGet = ipc.readLvar(LVarSet) ipc.writeLvar(LVarSet, LVarGet+1) elseif LVarSPD == 1 then LVarSet = "L:AB_AP_Mach_Select" LVarGet = ipc.readLvar(LVarSet) ipc.writeLvar(LVarSet, LVarGet+0.01) end end -- speed or mach dec if ipcPARAM == 35 then LVarSPD = ipc.readLvar("L:AB_AP_SPDMACH") if LVarSPD == 0 then LVarSet = "L:AB_AP_SPEED_Select" LVarGet = ipc.readLvar(LVarSet) ipc.writeLvar(LVarSet, LVarGet-1) elseif LVarSPD == 1 then LVarSet = "L:AB_AP_Mach_Select" LVarGet = ipc.readLvar(LVarSet) ipc.writeLvar(LVarSet, LVarGet-0.01) end end -- speed or mach inc fast if ipcPARAM == 36 then LVarSPD = ipc.readLvar("L:AB_AP_SPDMACH") if LVarSPD == 0 then LVarSet = "L:AB_AP_SPEED_Select" LVarGet = ipc.readLvar(LVarSet) ipc.writeLvar(LVarSet, LVarGet+10) elseif LVarSPD == 1 then LVarSet = "L:AB_AP_Mach_Select" LVarGet = ipc.readLvar(LVarSet) ipc.writeLvar(LVarSet, LVarGet+0.1) end end -- speed or mach dec if ipcPARAM == 37 then LVarSPD = ipc.readLvar("L:AB_AP_SPDMACH") if LVarSPD == 0 then LVarSet = "L:AB_AP_SPEED_Select" LVarGet = ipc.readLvar(LVarSet) ipc.writeLvar(LVarSet, LVarGet-10) elseif LVarSPD == 1 then LVarSet = "L:AB_AP_Mach_Select" LVarGet = ipc.readLvar(LVarSet) ipc.writeLvar(LVarSet, LVarGet-0.1) end end -------------------------------------------------------------- ALT -- Altitude rate selection toggle (100/1000) if ipcPARAM == 40 then LVarSet = "L:AB_AP_ALTSTEP" LVarGet = ipc.readLvar(LVarSet) val = 1 if ipc.readLvar(LVarSet) == 1 then val = 0 end ipc.writeLvar(LVarSet, val) end -- Altitude rate selection slow (100) if ipcPARAM == 41 then LVarSet = "L:AB_AP_ALTSTEP" ipc.writeLvar(LVarSet, 0) end -- Altitude rate selection fast (1000) if ipcPARAM == 42 then LVarSet = "L:AB_AP_ALTSTEP" ipc.writeLvar(LVarSet, 1) end -- Altitude mode selection: normal if ipcPARAM == 43 then LVarSet = "L:AB_AP_ALTmode" ipc.writeLvar(LVarSet, -1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- Altitude mode selection: managed if ipcPARAM == 44 then LVarSet = "L:AB_AP_ALTmode" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- Altitude mode selection normal/managed toggle if ipcPARAM == 45 then LVarSet = "L:AB_AP_ALTmode_set" LVarGet = ipc.readLvar(LVarSet) val = 1 if ipc.readLvar(LVarSet) == 1 then val = -1 end ipc.writeLvar("L:AB_AP_ALTmode", val) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ALT inc if ipcPARAM == 46 then LVarALT = ipc.readLvar("L:AB_AP_ALTSTEP") LVarSet = "L:AB_AP_ALT_Select" if LVarALT == 0 then LVarGet = ipc.readLvar(LVarSet) ipc.writeLvar(LVarSet, LVarGet+100) elseif LVarALT == 1 then LVarGet = ipc.readLvar(LVarSet) ipc.writeLvar(LVarSet, LVarGet+1000) end end -- ALT dec if ipcPARAM == 47 then LVarALT = ipc.readLvar("L:AB_AP_ALTSTEP") LVarSet = "L:AB_AP_ALT_Select" if LVarALT == 0 then LVarGet = ipc.readLvar(LVarSet) ipc.writeLvar(LVarSet, LVarGet-100) elseif LVarALT == 1 then LVarGet = ipc.readLvar(LVarSet) ipc.writeLvar(LVarSet, LVarGet-1000) end end -- ALT inc slow (100) if ipcPARAM == 48 then LVarSet = "L:AB_AP_ALT_Select" LVarGet = ipc.readLvar(LVarSet) ipc.writeLvar(LVarSet, LVarGet+100) end -- ALT inc fast (1000) if ipcPARAM == 49 then LVarSet = "L:AB_AP_ALT_Select" LVarGet = ipc.readLvar(LVarSet) ipc.writeLvar(LVarSet, LVarGet+1000) end -- ALT dec slow (100) if ipcPARAM == 50 then LVarSet = "L:AB_AP_ALT_Select" LVarGet = ipc.readLvar(LVarSet) ipc.writeLvar(LVarSet, LVarGet-100) end -- ALT dec fast (1000) if ipcPARAM == 51 then LVarSet = "L:AB_AP_ALT_Select" LVarGet = ipc.readLvar(LVarSet) ipc.writeLvar(LVarSet, LVarGet-1000) end -------------------------------------------------------------- V/S -- V/S level if ipcPARAM == 52 then LVarSet = "L:AB_AP_VSlevel" LVarGet = ipc.readLvar(LVarSet) ipc.writeLvar(LVarSet, 1) end -- V/S inc if ipcPARAM == 53 then ipc.control(65894) end -- V/S dec if ipcPARAM == 54 then ipc.control(65895) end -------------------------------------------------------------- F/D -- F/D button on if ipcPARAM == 60 then LVarSet = "L:AB_MPL_FD" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- F/D button off if ipcPARAM == 61 then LVarSet = "L:AB_MPL_FD" ipc.writeLvar(LVarSet, 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- F/D button toggle if ipcPARAM == 62 then LVarSet = "L:AB_MPL_FD" val = 0 if ipc.readLvar(LVarSet) == 0 then val = 1 end ipc.writeLvar(LVarSet, val) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -------------------------------------------------------------- LS -- LS button on if ipcPARAM == 63 then LVarSet = "L:AB_MPL_ILS" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- LS button off if ipcPARAM == 64 then LVarSet = "L:AB_MPL_ILS" ipc.writeLvar(LVarSet, 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- LS button toggle if ipcPARAM == 65 then LVarSet = "L:AB_MPL_ILS" val = 0 if ipc.readLvar(LVarSet) == 0 then val = 1 end ipc.writeLvar(LVarSet, val) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -------------------------------------------------------------- ND objects -- ND CSTR On if ipcPARAM == 70 then 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) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ND WPT On if ipcPARAM == 71 then 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) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ND VOR On if ipcPARAM == 72 then 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) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ND NDB On if ipcPARAM == 73 then 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) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ND ARPT On if ipcPARAM == 74 then 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) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -------------------------------------------------------------- ND mode -- ND mode inc if ipcPARAM == 80 then i = ipc.readLvar("L:AB_MPL_ND_Mode") if i ipc.writeLvar("L:AB_MPL_ND_Mode", i+1) ipc.sleep(10) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end end -- ND mode dec if ipcPARAM == 81 then i = ipc.readLvar("L:AB_MPL_ND_Mode") if i > 0 then ipc.writeLvar("L:AB_MPL_ND_Mode", i-1) ipc.sleep(10) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end end -------------------------------------------------------------- ND Range -- ND Range inc if ipcPARAM == 82 then i = ipc.readLvar("L:AB_MPL_ND_Range") if i ipc.writeLvar("L:AB_MPL_ND_Range", i+1) ipc.sleep(10) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end end -- ND Range dec if ipcPARAM == 83 then i = ipc.readLvar("L:AB_MPL_ND_Range") if i > 0 then ipc.writeLvar("L:AB_MPL_ND_Range", i-1) ipc.sleep(10) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end end -------------------------------------------------------------- VOR/ADF1 -- VOR1 button on if ipcPARAM == 90 then LVarSet = "L:AB_MPL_ND_Arrow1" ipc.writeLvar(LVarSet, 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ADF button on if ipcPARAM == 91 then LVarSet = "L:AB_MPL_ND_Arrow1" ipc.writeLvar(LVarSet, 2) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- VOR/ADF1 off if ipcPARAM == 92 then LVarSet = "L:AB_MPL_ND_Arrow1" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -------------------------------------------------------------- VOR/ADF2 -- VOR2 button on if ipcPARAM == 93 then LVarSet = "L:AB_MPL_ND_Arrow2" ipc.writeLvar(LVarSet, 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ADF2 button on if ipcPARAM == 94 then LVarSet = "L:AB_MPL_ND_Arrow2" ipc.writeLvar(LVarSet, 2) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- VOR/ADF2 off if ipcPARAM == 95 then LVarSet = "L:AB_MPL_ND_Arrow2" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -------------------------------------------------------------- BARO/STD -- baro/STD button toggle if ipcPARAM == 96 then LVarSet = "L:AB_MPL_Baro_STD" val = 0 if ipc.readLvar(LVarSet) == 0 then val = 1 end ipc.writeLvar(LVarSet, val) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -------------------------------------------------------------- Master WARN/CAUTION -- Master Warn off if ipcPARAM == 97 then LVarSet = "L:AB_MPL_Master_Warning_Light" ipc.writeLvar(LVarSet, 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- Master caution off if ipcPARAM == 98 then LVarSet = "L:AB_MPL_Master_Caution_Light" ipc.writeLvar(LVarSet, 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- Master caution AND warn off if ipcPARAM == 99 then LVarSet = "L:AB_MPL_Master_Caution_Light" LVarSet2 = "L:AB_MPL_Master_Warning_Light" ipc.writeLvar(LVarSet, 0) ipc.sleep(10) ipc.writeLvar(LVarSet2, 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -------------------------------------------------------------- lights -------------------------------------------------------------- strobe -- strobe on if ipcPARAM == 100 then LVarSet = "L:Strobe_light" ipc.writeLvar(LVarSet, 2) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- strobe auto if ipcPARAM == 101 then LVarSet = "L:Strobe_light" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- strobe off if ipcPARAM == 102 then LVarSet = "L:Strobe_light" ipc.writeLvar(LVarSet, 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- strobe toggle on/off if ipcPARAM == 103 then LVarSet = "L:Strobe_light" val = 0 if ipc.readLvar(LVarSet) == 0 then val = 2 end ipc.writeLvar(LVarSet, val) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -------------------------------------------------------------- runway lights -- RW lights on if ipcPARAM == 104 then LVarSet = "L:AB_OVH_LIGHTS_RWYTURNOFF" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- RW lights off if ipcPARAM == 105 then LVarSet = "L:AB_OVH_LIGHTS_RWYTURNOFF" ipc.writeLvar(LVarSet, 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -------------------------------------------------------------- landing lights -- LL retracted if ipcPARAM == 106 then LVarSet = "L:Landlight_switch" ipc.writeLvar(LVarSet, 0) ipc.control(66060) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- LL on if ipcPARAM == 107 then LVarSet = "L:Landlight_switch" ipc.writeLvar(LVarSet, 2) ipc.control(66059) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- LL off if ipcPARAM == 108 then LVarSet = "L:Landlight_switch" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- LL toggle on/off if ipcPARAM == 109 then LVarSet = "L:Landlight_switch" val = 0 valL = 66060 if ipc.readLvar(LVarSet) == 0 then val = 2 valL = 66059 end ipc.writeLvar(LVarSet, val) ipc.control(valL) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -------------------------------------------------------------- taxi lights -- Taxi off if ipcPARAM == 110 then LVarSet = "L:AB_TAXI_LT" ipc.writeLvar(LVarSet, 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- Taxi on if ipcPARAM == 111 then LVarSet = "L:AB_TAXI_LT" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- Taxi T.O. if ipcPARAM == 112 then LVarSet = "L:AB_TAXI_LT" ipc.writeLvar(LVarSet, 2) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- Taxi toggle off/T.O. if ipcPARAM == 113 then LVarSet = "L:AB_TAXI_LT" val = 0 if ipc.readLvar(LVarSet) == 0 then val = 2 end ipc.writeLvar(LVarSet, val) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -------------------------------------------------------------- seat sign -- seat sign off if ipcPARAM == 114 then LVarSet = "L:AB_OVH_SEATBELT" ipc.writeLvar(LVarSet, 0) ipc.writeLvar("L:ASC_NOSMOKE-SEATBELTS", 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- seat sign auto if ipcPARAM == 115 then LVarSet = "L:AB_OVH_SEATBELT" ipc.writeLvar(LVarSet, 25) ipc.writeLvar("L:ASC_NOSMOKE-SEATBELTS", 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- seat sign on if ipcPARAM == 116 then LVarSet = "L:AB_OVH_SEATBELT" ipc.writeLvar(LVarSet, 50) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- seat sign toggle on/off if ipcPARAM == 117 then LVarSet = "L:AB_OVH_SEATBELT" val = 0 if ipc.readLvar(LVarSet) == 0 then val = 50 end ipc.writeLvar(LVarSet, val) ipc.writeLvar("L:ASC_NOSMOKE-SEATBELTS", 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -------------------------------------------------------------- smoke sign -- smoke sign off if ipcPARAM == 118 then LVarSet = "L:AB_OVH_NO_SMOKING" ipc.writeLvar(LVarSet, -1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) ipc.writeLvar("L:ASC_NOSMOKE-SEATBELTS", 1) end -- smoke sign auto if ipcPARAM == 119 then LVarSet = "L:AB_OVH_NO_SMOKING" ipc.writeLvar(LVarSet, 25) ipc.writeLvar("L:ASC_NOSMOKE-SEATBELTS", 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- smoke sign on if ipcPARAM == 120 then LVarSet = "L:AB_OVH_NO_SMOKING" ipc.writeLvar(LVarSet, 50) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- smoke sign toggle on/off if ipcPARAM == 121 then LVarSet = "L:AB_OVH_NO_SMOKING" val = 0 if ipc.readLvar(LVarSet) == 0 then val = 50 end ipc.writeLvar(LVarSet, val) ipc.writeLvar("L:ASC_NOSMOKE-SEATBELTS", 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -------------------------------------------------------------- emer lights -- EL off if ipcPARAM == 122 then LVarSet = "L:AB_OVH_EMER_LT" ipc.writeLvar(LVarSet, 0) ipc.writeLvar("L:ASC_NOSMOKE-SEATBELTS", 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- EL armed if ipcPARAM == 123 then LVarSet = "L:AB_OVH_EMER_LT" ipc.writeLvar(LVarSet, 25) ipc.writeLvar("L:ASC_NOSMOKE-SEATBELTS", 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- el on if ipcPARAM == 124 then LVarSet = "L:AB_OVH_EMER_LT" ipc.writeLvar(LVarSet, 50) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -------------------------------------------------------------- systems -------------------------------------------------------------- APU Master -- APU Master on if ipcPARAM == 130 then LVarSet = "AB_OVH_APU_MASTER" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- APU Master off if ipcPARAM == 131 then LVarSet = "AB_OVH_APU_MASTER" ipc.writeLvar(LVarSet, 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- APU Master toggle if ipcPARAM == 132 then LVarSet = "AB_OVH_APU_MASTER" val = 0 if ipc.readLvar(LVarSet) == 0 then val = 1 end ipc.writeLvar(LVarSet, val) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -------------------------------------------------------------- APU Start -- APU Master on if ipcPARAM == 133 then LVarSet = "AB_OVH_APU_Start" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- APU Master off if ipcPARAM == 134 then LVarSet = "AB_OVH_APU_Start" ipc.writeLvar(LVarSet, 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- APU Master toggle if ipcPARAM == 135 then LVarSet = "AB_OVH_APU_Start" val = 0 if ipc.readLvar(LVarSet) == 0 then val = 1 end ipc.writeLvar(LVarSet, val) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -------------------------------------------------------------- APU Master and Start combined toggle -- APU Master AND Start toggle if ipcPARAM == 136 then LVarSet = "AB_OVH_APU_Start" LVarSet2 = "AB_OVH_APU_Master" val = 0 ipc.writeLvar(LVarSet, val) if ipc.readLvar(LVarSet2) == 0 then val = 1 ipc.writeLvar("L:SmallOverheadPushButtons", 1) end ipc.writeLvar(LVarSet2, val) ipc.sleep(500) ipc.writeLvar(LVarSet, val) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -------------------------------------------------------------- Autobrake -- Autobrake inc if ipcPARAM == 140 then i = ipc.readLvar("L:Autobrake_position") if i ipc.writeLvar("L:Autobrake_position", i+1) ipc.sleep(10) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end end -- Autobrake dec if ipcPARAM == 141 then i = ipc.readLvar("L:Autobrake_position") if i > 0 then ipc.writeLvar("L:Autobrake_position", i-1) ipc.sleep(10) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end end -- Autobrake MAX if ipcPARAM == 142 then LVarSet = "L:Autobrake_position" ipc.writeLvar(LVarSet, 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- Autobrake OFF if ipcPARAM == 143 then LVarSet = "L:Autobrake_position" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- Autobrake MIN if ipcPARAM == 144 then LVarSet = "L:Autobrake_position" ipc.writeLvar(LVarSet, 2) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- Autobrake MED if ipcPARAM == 145 then LVarSet = "L:Autobrake_position" ipc.writeLvar(LVarSet, 3) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -------------------------------------------------------------- TCAS -- TCAS dial inc if ipcPARAM == 148 then LVarSet = "L:Mod_Xponder_mode" LstateSet = ipc.ReadLvar(LVarSet) if LstateSet val = LstateSet +1 ipc.writeLvar("L:SmallOverheadPushButtons", 1) else val = 5 end ipc.writeLvar(LVarSet, val) end -- TCAS dial dec if ipcPARAM == 149 then LVarSet = "L:Mod_Xponder_mode" LstateSet = ipc.ReadLvar(LVarSet) if LstateSet >=1 then val = LstateSet -1 ipc.writeLvar("L:SmallOverheadPushButtons", 1) else val = 0 end ipc.writeLvar(LVarSet, val) end -------------------------------------------------------------- Engines on off -- ENG1 Master on if ipcPARAM == 150 then LVarSet = "L:AB_PDS_Eng1Master" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ENG1 Master off if ipcPARAM == 151 then LVarSet = "L:AB_PDS_Eng1Master" ipc.writeLvar(LVarSet, 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ENG1 Master toggle if ipcPARAM == 152 then LVarSet = "L:AB_PDS_Eng1Master" val = 0 if ipc.readLvar(LVarSet) == 0 then val = 1 end ipc.writeLvar(LVarSet, val) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ENG2 Master on if ipcPARAM == 153 then LVarSet = "L:AB_PDS_Eng2Master" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ENG2 Master off if ipcPARAM == 154 then LVarSet = "L:AB_PDS_Eng2Master" ipc.writeLvar(LVarSet, 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ENG2 Master toggle if ipcPARAM == 155 then LVarSet = "L:AB_PDS_Eng2Master" val = 0 if ipc.readLvar(LVarSet) == 0 then val = 1 end ipc.writeLvar(LVarSet, val) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -------------------------------------------------------------- IGN on off -- IGN on if ipcPARAM == 156 then LVarSet = "L:AB_PDS_ignition" ipc.writeLvar(LVarSet, 2) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- IGN off if ipcPARAM == 157 then LVarSet = "L:AB_PDS_ignition" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- IGN toggle if ipcPARAM == 158 then LVarSet = "L:AB_PDS_ignition" val = 1 if ipc.readLvar(LVarSet) == 1 then val = 2 end ipc.writeLvar(LVarSet, val) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -------------------------------------------------------------- ECAM -- ECAM ENG if ipcPARAM == 160 then LVarSet = "L:ECAM_Mode" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ECAM BLEED if ipcPARAM == 161 then LVarSet = "L:ECAM_Mode" ipc.writeLvar(LVarSet, 2) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ECAM PRESS if ipcPARAM == 162 then LVarSet = "L:ECAM_Mode" ipc.writeLvar(LVarSet, 3) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ECAM ELEC if ipcPARAM == 163 then LVarSet = "L:ECAM_Mode" ipc.writeLvar(LVarSet, 4) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ECAM HYD if ipcPARAM == 164 then LVarSet = "L:ECAM_Mode" ipc.writeLvar(LVarSet, 5) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ECAM FUEL if ipcPARAM == 165 then LVarSet = "L:ECAM_Mode" ipc.writeLvar(LVarSet, 6) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ECAM APU if ipcPARAM == 166 then LVarSet = "L:ECAM_Mode" ipc.writeLvar(LVarSet, 7) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ECAM COND if ipcPARAM == 167 then LVarSet = "L:ECAM_Mode" ipc.writeLvar(LVarSet, 8) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ECAM DOOR if ipcPARAM == 168 then LVarSet = "L:ECAM_Mode" ipc.writeLvar(LVarSet, 9) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ECAM WHEEL if ipcPARAM == 169 then LVarSet = "L:ECAM_Mode" ipc.writeLvar(LVarSet, 10) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ECAM FCTL if ipcPARAM == 170 then LVarSet = "L:ECAM_Mode" ipc.writeLvar(LVarSet, 11) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ECAM ALL if ipcPARAM == 171 then LVarSet = "L:ECAM_Mode" ipc.writeLvar(LVarSet, 12) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end ---------------------------------------------------------ECAM CLR, RCL -- ECAM CLR if ipcPARAM == 175 then LVarSet = "L:AB_ECAM_CLR" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ECAM RCL if ipcPARAM == 176 then LVarSet = "L:AB_ECAM_CLR" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end ---------------------------------------------------------ECAM TO config -- ECAM TO config if ipcPARAM == 180 then ipc.writeLvar("L:AB_ECAM_TOCFG", 1) ipc.writeLvar("L:AB_ECAM_TOconf", 1) ipc.writeLvar("L:AB_ECAM_TOconf_Hasbeentested", 1) ipc.writeLvar("L:AB_ECAM_RCL", 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) ipc.sleep(1500) ipc.writeLvar("L:AB_ECAM_TOCFG", 0) end ---------------------------------------------------------ECAM, PFDs, NDs on off -- ECAM, PFDs, NDs, Radio on if ipcPARAM == 185 then ipc.writeLvar("L:AB_PDS_RADIO_POWER", 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) ipc.sleep(50) ipc.writeLvar("L:AB_MPL_PFD_Power", 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) ipc.sleep(100) ipc.writeLvar("L:AB_MPL_ND_Power", 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) ipc.sleep(70) ipc.writeLvar("L:AB_MPL_ECAMU_Power", 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) ipc.sleep(50) ipc.writeLvar("L:AB_MPL_ECAML_Power", 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- ECAM, PFDs, NDs, Radio off if ipcPARAM == 186 then ipc.writeLvar("L:AB_PDS_RADIO_POWER", 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) ipc.sleep(50) ipc.writeLvar("L:AB_MPL_PFD_Power", 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) ipc.sleep(100) ipc.writeLvar("L:AB_MPL_ND_Power", 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) ipc.sleep(70) ipc.writeLvar("L:AB_MPL_ECAMU_Power", 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) ipc.sleep(50) ipc.writeLvar("L:AB_MPL_ECAML_Power", 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end ---------------------------------------------------------APU Bleed -- APU Bleed on if ipcPARAM == 190 then LVarSet = "L:AB_OVH_PNEUBLEEDAPU" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- APU Bleed off if ipcPARAM == 191 then LVarSet = "L:AB_OVH_PNEUBLEEDAPU" ipc.writeLvar(LVarSet, 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- APU Bleed toggle if ipcPARAM == 192 then LVarSet = "L:AB_OVH_PNEUBLEEDAPU" val = 0 if ipc.readLvar(LVarSet) == 0 then val = 1 end ipc.writeLvar(LVarSet, val) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end ---------------------------------------------------------BAT1 -- Battery1 on if ipcPARAM == 200 then LVarSet = "L:AB_OVH_ELECBAT1" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- Battery1 off if ipcPARAM == 201 then LVarSet = "L:AB_OVH_ELECBAT1" ipc.writeLvar(LVarSet, 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- Battery1 toggle if ipcPARAM == 202 then LVarSet = "L:AB_OVH_ELECBAT1" val = 0 if ipc.readLvar(LVarSet) == 0 then val = 1 end ipc.writeLvar(LVarSet, val) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end ---------------------------------------------------------BAT2 -- Battery2 on if ipcPARAM == 203 then LVarSet = "L:AB_OVH_ELECBAT2" ipc.writeLvar(LVarSet, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- Battery2 off if ipcPARAM == 204 then LVarSet = "L:AB_OVH_ELECBAT2" ipc.writeLvar(LVarSet, 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- Battery2 toggle if ipcPARAM == 205 then LVarSet = "L:AB_OVH_ELECBAT2" val = 0 if ipc.readLvar(LVarSet) == 0 then val = 1 end ipc.writeLvar(LVarSet, val) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end ---------------------------------------------------------BAT1+2 -- Battery1+2 on if ipcPARAM == 206 then LVarSet1 = "L:AB_OVH_ELECBAT1" LVarSet2 = "L:AB_OVH_ELECBAT2" ipc.writeLvar(LVarSet1, 1) ipc.writeLvar(LVarSet2, 1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- Battery1+2 off if ipcPARAM == 207 then LVarSet1 = "L:AB_OVH_ELECBAT1" LVarSet2 = "L:AB_OVH_ELECBAT2" ipc.writeLvar(LVarSet1, 0) ipc.writeLvar(LVarSet2, 0) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end -- Battery1+2 toggle if ipcPARAM == 208 then LVarSet1 = "L:AB_OVH_ELECBAT1" LVarSet2 = "L:AB_OVH_ELECBAT2" val = 0 if ipc.readLvar(LVarSet1) == 0 then val = 1 end ipc.writeLvar(LVarSet1, val) ipc.writeLvar(LVarSet2, val) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end --------------------------------------------------------------------------------------- LUA scripts for AirbusX throttle thanks to Pete we have now the possibility to assign the AirbusX throttles via FSUIPC I copy Petes "How-To" out of the last one posts: Try the following two Lua plug-ins: First this, saved as AirbusX_Thr1.lua: ipc.writeLvar("L:AS_FADEC_0", ipcPARAM*-2) And this, saved as AirbusX_Thr2.lua: ipc.writeLvar("L:AS_FADEC_1", ipcPARAM*-2) Save them in the FSX Modules folder. Then, in FSUIPC axis assignments, assign Throttle 1 to the so-called 'FS control' Lua AirbusX_Thr1, and similarly Throttle 2 to Lua AirbusX_Thr2. Note that you'll find these listed in the "Send to FS as normal axis" mode, NOT in the "Send direct to FSUIPC" mode. This is a quirk of how macros and plug-ins are recognised. I have tested this with my Saitek X52 and Saitek throttle quadrant and works perfect. But of course, other hardware could have problems, maybe. Even if I don't think so. Please try it out and feel free to report back! Thanks again and all credits to Pete Dowson! ---------------------------------- My FADEC Lua Script is obsolete, as this solution is much better! For historical research I will leave the code stay below :mrgreen: -- FADEC Aerosoft AirbusX -- LUA Script V 1.1 for Aerosoft FADEC -- Wednesday, the 8th of September, 2010 ;-) -- (C) Guenter Steiner/guenseli -- List of parameters -- -- -- 1 FADEC L and R zero -- 2 FADEC L zero -- 3 FADEC R zero -- zero means, throttle at idle -- -- -- 10 FADEC L and R taxi -- 11 FADEC L taxi -- 12 FADEC R taxi -- taxi means, throttle is a bit open, about 10%. no other possibility right now; you have to brake -- -- -- 20 FADEC L and R CLB -- 21 FADEC L CLB -- 22 FADEC R CLB -- CLB mode -- -- -- 30 FADEC L and R MCT -- 31 FADEC L MCT -- 32 FADEC R MCT -- MCT mode -- -- I have not sorted out FLX mode, will be updated if possible -- -- -- 50 FADEC L and R TOGA -- 51 FADEC L TOGA -- 52 FADEC R TOGA -- TOGA Mode -- -- FADEC----------- ----------------------------------FADEC zero -- FADEC L AND R if ipcPARAM == 1 then ipc.writeLvar("L:AS_FADEC_0", 32768) ipc.sleep(50) ipc.writeLvar("L:AS_FADEC_1", 32768) end -- FADEC L if ipcPARAM == 2 then ipc.writeLvar("L:AS_FADEC_0", 32768) end -- FADEC R if ipcPARAM == 3 then ipc.writeLvar("L:AS_FADEC_1", 32768) end ----------------------------------FADEC taxi -- FADEC L AND R if ipcPARAM == 10 then ipc.writeLvar("L:AS_FADEC_0", 17000) ipc.sleep(50) ipc.writeLvar("L:AS_FADEC_1", 17000) end -- FADEC L if ipcPARAM == 11 then ipc.writeLvar("L:AS_FADEC_0", 17000) end -- FADEC R if ipcPARAM == 12 then ipc.writeLvar("L:AS_FADEC_1", 17000) end ----------------------------------FADEC CLB -- FADEC L AND R if ipcPARAM == 20 then ipc.writeLvar("L:AS_FADEC_0", -7000) ipc.sleep(50) ipc.writeLvar("L:AS_FADEC_1", -7000) end -- FADEC L if ipcPARAM == 21 then ipc.writeLvar("L:AS_FADEC_0", -7000) end -- FADEC R if ipcPARAM == 22 then ipc.writeLvar("L:AS_FADEC_1", -7000) end ----------------------------------FADEC MCT -- FADEC L AND R if ipcPARAM == 30 then ipc.writeLvar("L:AS_FADEC_0", -14000) ipc.sleep(50) ipc.writeLvar("L:AS_FADEC_1", -14000) end -- FADEC L if ipcPARAM == 31 then ipc.writeLvar("L:AS_FADEC_0", -14000) end -- FADEC R if ipcPARAM == 32 then ipc.writeLvar("L:AS_FADEC_1", -14000) end ----------------------------------FADEC TOGA -- FADEC L AND R if ipcPARAM == 50 then ipc.writeLvar("L:AS_FADEC_0", -32000) ipc.writeLvar("L:AS_FADEC_1", -32000) ipc.control(65596) end -- FADEC L if ipcPARAM == 51 then ipc.writeLvar("L:AS_FADEC_0", -32000) ipc.control(65963) end -- FADEC R if ipcPARAM == 52 then ipc.writeLvar("L:AS_FADEC_1", -32000) ipc.control(65968) end
  14. to do or not to do.... seems that many english people ask this question :mrgreen: the above is just my opinion, Pete. Do what ever you want, what you think...
  15. If you look at the "no macro"-sticky thread from yesterday, thats what I meant with "i don't want to destroy the sticky".... :wink: Maybe you can take out my arguments from the sticky... The discussion about it should be here in the forum, I think. As you like... I find the sticky "Addons which work with MACROs" also not very lucky, because theres now only the simcheck airbus.... Everybody will wonder why there are not more aircraft. But you could simply add every addon there with no system deepth...every carenado, Alphasim, etc etc for example. Other argument here is, that my A2A P47 is working very well with MACROs, but inside the Macros are "only" LUA Variables. Is this now a Macro intended to the post or not? or to both?? :wink: Goal of the MACRO stickies is (if I'm right) to list all aircraft addons, whose functions are assignable to hardware modules...? so, for constructive critic, why don't do we make ONE sticky where all Addons are listed which are assignable to hardware through FSUIPC? We add there all Addons and behind them we write if they will work with Macros, LUAs, both or don't work. So, no addon gets "banned", no potential customer gets frightened.... peace everywhere :mrgreen:
  16. Of course you have the best thoughts to make such a list sticky and name Addons which are not compatible with FSUIPC Macros... But it has also the taste of a kind of "banning list" (don't know a good english expression) For example, the A2A Accusim products don't work with macros. Many functions of the PMDG J41 don't work with Macros, because the J41 don't have much 2D panels. But these are excellent products! I find it better to try to investigate in LUA variables and find out, how addons will work with FSUIPCs help, instead of marking them as simply "non-working" But thats just my opinion... some examples: A2A B17 with AccuSim: http://forums.simflight.com/viewtopic.php?f=54&t=79902 A2A P47 with AccuSim: http://forums.simflight.com/viewtopic.php?f=54&t=78343 PMDG J41: http://forums.simflight.com/viewtopic.php?f=54&t=78339
  17. don't wanted to "destroy" the sticky, but if you wish I will post this statement there, also...
  18. Hello Jack, hello Pete, Of course you have both the best thoughts to make such a list sticky and name Addons which are not compatible with FSUIPC Macros... But it has also the taste of a kind of "banning list" (don't know a good english expression) For example, the A2A Accusim products don't work with macros. Many functions of the PMDG J41 don't work with Macros, because the J41 don't have much 2D panels. But these are excellent products! I find it better to try to investigate in LUA variables and find out, how addons will work with FSUIPCs help, instead of marking them as simply "non-working" But thats just my opinion...
  19. No, theres no other site... The versions here in the first thread are updated... But just copy and paste it from here into a new editior file and give it an other name...e.g. "ColdDark2.LUA" So, you can use both files if you want.... if it makes sense for you
  20. And Simone, would be very nice, you ill keep this thread clear of specific LUA questions... feel free to open a new post in Petes forum... There will your question will be found easier...
  21. Sorry Simone, I have deleted the link and replaced it by "llok at Updates and goodies section" here in this forum... I'm sure, you will find it :mrgreen:
  22. Here's an example for the X52 so called "pinky switch" - this one at your little finger: 12=CP(-A,5)A,4,C66153,0 ;next sub View 13=CP(+A,5)A,4,C66154,0 ;prev sub view A,5 is the pinky switch (Button 5 from Joystick "A") A,4 is an other Button. The code means, Button 5 NOT pressed ("-"), AND Button 4 pressed does next sub view And Button 5 pressed ("+") AND Button 4 pressed previous sub view. theoretically could you do this with the "mode" selctor also. But could you imagine what hard coding work in the *.ini that would be???!!! I have asked Pete years ago if he could implement such a feature in the FSUIPC menu, that some actions work only if you press a button AND an other button... but he refused :wink:
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.