May 20, 20224 yr 30 minutes ago, Lorby_SI said: Personally I am really upset about the fact that "we", the users, have to figure out all this by ourselves, time and time again. That is not the way it should be. I really don't know why ASOBO, P#D as far as that goes can't do as Xplane and have individual Controller setup per aircraft.
May 20, 20224 yr Commercial Member 33 minutes ago, Adrian123 said: I really don't know why ASOBO, P#D as far as that goes can't do as Xplane and have individual Controller setup per aircraft. Controller setup as in every single button, knob and switch in a VC can be mapped? Even non-standard ones, that are not part of the core simulator logic? And the mapping can be done to Joysticks, MIDI devices, Arduino boards - whatever? In XP itself?? IMO, the problem that we have in MSFS is, that the developers just disregard the SDK. There are perfectly fine K: events available to control a great many things. But the makers of aircraft decide that they want to do their own "thing", and they all use different methods - LVars, HVars, BVars, ROTOR_BRAKE pattern and whatnot. Instead of using the standard events at least for the standard controls. Like AP selected altitude, see above. Edited May 20, 20224 yr by Lorby_SI LORBY-SI
May 20, 20224 yr Commercial Member 2 hours ago, Crabby said: (L:E_FCU_ALTITUDE,·Number) is the Lvar (read from AAO) for changing the altitude. I cannot figure out how to actually make it change. The things I did for the 737 are not working of course, event ID vs Lvars. What say the gurus? The Behavior code says this: <ON_INC>(L:#VAR_NAME#) ++ (>L:#VAR_NAME#)</ON_INC> <ON_DEC>(L:#VAR_NAME#) -- (>L:#VAR_NAME#)</ON_DEC> with in this case the #VAR_NAME# being E_FCU_ALTITUDE So in AAO the scripts would be INC (L:E_FCU_ALTITUDE, Number) ++ (>L:E_FCU_ALTITUDE, Number) DEC (L:E_FCU_ALTITUDE, Number) -- (>L:E_FCU_ALTITUDE, Number) But I can't test it at the moment, just looking at the XML file LORBY-SI
May 20, 20224 yr 1 hour ago, Lorby_SI said: The Behavior code says this: <ON_INC>(L:#VAR_NAME#) ++ (>L:#VAR_NAME#)</ON_INC> <ON_DEC>(L:#VAR_NAME#) -- (>L:#VAR_NAME#)</ON_DEC> with in this case the #VAR_NAME# being E_FCU_ALTITUDE So in AAO the scripts would be INC (L:E_FCU_ALTITUDE, Number) ++ (>L:E_FCU_ALTITUDE, Number) DEC (L:E_FCU_ALTITUDE, Number) -- (>L:E_FCU_ALTITUDE, Number) But I can't test it at the moment, just looking at the XML file works! AAL??? Mark "Crabby" Crabtree
May 20, 20224 yr I am watching the following event (L:I_FCU_HEADING_MANAGED,·Number):[1.000000] is returned when I push the button (L:I_FCU_HEADING_MANAGED,·Number):[0.000000] is returned when I pull the button now, can I write a script to make those things happen (push/pull) the button (L:I_FCU_HEADING_MANAGED,·Number) (>L:1) for push and (>L:0) ? AAL??? Mark "Crabby" Crabtree
May 20, 20224 yr Author Here's a link to my scripts. Got a few in there and might save you all some time! https://drive.google.com/drive/folders/1s0OYu0gSwzKS_SY9P4SRapvjlT4U0NnS?usp=sharing 🛫
May 20, 20224 yr Commercial Member If anybody is looking for a solution for the flaps lever, here is mine: LORBY-SI
May 20, 20224 yr 28 minutes ago, daan_vb said: Here's a link to my scripts. Got a few in there and might save you all some time! https://drive.google.com/drive/folders/1s0OYu0gSwzKS_SY9P4SRapvjlT4U0NnS?usp=sharing Thanks! I cannot believe I was so far off the freaking path. Trying to learn how to do this, but..... AAL??? Mark "Crabby" Crabtree
May 20, 20224 yr 55 minutes ago, daan_vb said: Here's a link to my scripts. Got a few in there and might save you all some time! https://drive.google.com/drive/folders/1s0OYu0gSwzKS_SY9P4SRapvjlT4U0NnS?usp=sharing Dude! This is awesome.
May 20, 20224 yr 1 hour ago, daan_vb said: Here's a link to my scripts. Got a few in there and might save you all some time! https://drive.google.com/drive/folders/1s0OYu0gSwzKS_SY9P4SRapvjlT4U0NnS?usp=sharing Really appreciate it. Some reason I had to edit the heading up. No ++. Thanks
May 21, 20224 yr Author If anyone can help me with a script to cycle through different LVars that would be appreciated. I would like to cycle through the Autobrake settings: LO > MED > MAX > OFF and then back round again etc. 🛫
May 21, 20224 yr Commercial Member 52 minutes ago, daan_vb said: If anyone can help me with a script to cycle through different LVars that would be appreciated. I would like to cycle through the Autobrake settings: LO > MED > MAX > OFF and then back round again etc. What is the Lvar and what is the value range (=what value of the LVar corresponds to which setting?) I normally use this pattern: This toggles all positions upwards then downwards, then upwards etc. You can easily adapt it to 0-1-2-3-0-1-2-3 too (assuming that there is an event where you can force "OFF" from any position - otherwise you are stuck with the up/down cycle). (L:switch_229_73X,·Number)·s0·(L:switch229dir)·s1· l0·0·==·if{·22902·(>K:ROTOR_BRAKE)·0·s1·}· l0·10·==·if{·l1·0·==·if{·22902·(>K:ROTOR_BRAKE)·}·els{·22901·(>K:ROTOR_BRAKE)·}·}· l0·20·==·if{·l1·0·==·if{·22902·(>K:ROTOR_BRAKE)·}·els{·22901·(>K:ROTOR_BRAKE)·}·}· l0·30·==·if{·l1·0·==·if{·22902·(>K:ROTOR_BRAKE)·}·els{·22901·(>K:ROTOR_BRAKE)·}·}· l0·40·==·if{·22901·(>K:ROTOR_BRAKE)·1·s1·}· l1·(>L:switch229dir) Edited May 21, 20224 yr by Lorby_SI LORBY-SI
May 21, 20224 yr Is anyone having success mapping the Bravo toggle siwtches to the F/D? The F/D buttons are pushbuttons in the sim, so toggle on is like you're holding the button down. Not sure if I'm explaining it, but I basically need the toggle to press the button and release it.
May 21, 20224 yr Author 10 hours ago, Lorby_SI said: What is the Lvar and what is the value range (=what value of the LVar corresponds to which setting?) I normally use this pattern: This toggles all positions upwards then downwards, then upwards etc. You can easily adapt it to 0-1-2-3-0-1-2-3 too (assuming that there is an event where you can force "OFF" from any position - otherwise you are stuck with the up/down cycle). (L:switch_229_73X,·Number)·s0·(L:switch229dir)·s1· l0·0·==·if{·22902·(>K:ROTOR_BRAKE)·0·s1·}· l0·10·==·if{·l1·0·==·if{·22902·(>K:ROTOR_BRAKE)·}·els{·22901·(>K:ROTOR_BRAKE)·}·}· l0·20·==·if{·l1·0·==·if{·22902·(>K:ROTOR_BRAKE)·}·els{·22901·(>K:ROTOR_BRAKE)·}·}· l0·30·==·if{·l1·0·==·if{·22902·(>K:ROTOR_BRAKE)·}·els{·22901·(>K:ROTOR_BRAKE)·}·}· l0·40·==·if{·22901·(>K:ROTOR_BRAKE)·1·s1·}· l1·(>L:switch229dir) Thanks Oliver, So the LVars to turn on are: 1 (L:S_MIP_AUTOBRAKE_LO) 1 (L:S_MIP_AUTOBRAKE_MID) 1 (L:S_MIP_AUTOBRAKE_MAX) So i guess I would want cycle through all 3 then turn off MAX at the end (so 4 Positions?) before starting at Min again. What is this LVar in your code: L:switch229dir Is that an "internal" LVar or a PMDG one? 🛫
May 21, 20224 yr Author 2 hours ago, Chapstick said: Is anyone having success mapping the Bravo toggle siwtches to the F/D? The F/D buttons are pushbuttons in the sim, so toggle on is like you're holding the button down. Not sure if I'm explaining it, but I basically need the toggle to press the button and release it. I use this code, tried it with a toggle switch and it seems to work OK. 1·(>L:S_FCU_EFIS1_FD,·Number)·(WAIT:100)·0·(>L:S_FCU_EFIS1_FD,·Number)·(WAIT:1000)·1·(>L:S_FCU_EFIS2_FD,·Number)·(WAIT:100)·0·(>L:S_FCU_EFIS2_FD,·Number) 🛫
Archived
This topic is now archived and is closed to further replies.