February 16, 20233 yr Good morning translated by Google could you tell me why function scripts under mobiflight and under AAO I have two example unlock door and this one THANKS
February 16, 20233 yr Commercial Member Please take a look at the AAO manual, chapter "Scripting", section about "Local variables". The AAO RPN dialect is not simply a replica of the SDK default and it cannot be compared to/using in other apps. RPN has been expanded substantially. It has slightly different rules and a lot more operators and commands. If you want to read/write LVars to/from the simulator, you MUST supply the "Unit" in AAO. Otherwise the LVars are processed only internally. (L:whatever, Number) Another option is to send your code to the sim for processing instead, by writing (SIMPROC) at the beginning of the script. Edited February 16, 20233 yr by Lorby_SI LORBY-SI
February 16, 20233 yr Author I try to understand I have the section as you suggested I have the first two variables 1 (>L:LIGHTING_STROBE_0) 1 (>L:STROBE_0_Auto) 1 0 r (>K:2:STROBES_SET) but not this one (>K:2:STROBES_SET) can you put me on the right track
February 16, 20233 yr Commercial Member Sorry but I have no idea what that script is supposed to do, and the syntax is very weird (and it is still wrong for AAO, as explained above, the LVars MUST have a Unit). I cannot correct it, I can only guess.... (Plus, why one would need to reverse the stack with "r" for static values is beyond me. Waste of processor cycles. Just flip the values if you want them the other way round?) 1·(>L:LIGHTING_STROBE_0,·Number)·1·(>L:STROBE_0_Auto,·Number)·0·1·(>K:2:STROBES_SET) or maybe simply use 1·(>L:LIGHTING_STROBE_0,·Number)·1·(>L:STROBE_0_Auto,·Number)·1·(>K:STROBES_SET) Edited February 16, 20233 yr by Lorby_SI LORBY-SI
February 16, 20233 yr Author I would like to switch the strobes to auto, and not to on in the a320 flybywire
February 16, 20233 yr Commercial Member 7 minutes ago, ptimale said: I would like to switch the strobes to auto, and not to on in the a320 flybywire Sorry, no idea how that is done. But if a switch has 3 positions, the values that you send to it are usually 0, 1 or 2. Your example above uses "1", apparently. Take a look on flightsim.to and check if there is a profile for the FBW made for AxisAndOhs. Even if it has been made for the StreamDeck, there is usually a script package there that you can import into AAO. These packages usually contain all that you need. If you find something suitable, keep on checking that site for updates too. The FBW is constantly evolving, and these control mechanisms can change with every update. Edited February 16, 20233 yr by Lorby_SI LORBY-SI
February 16, 20233 yr Author I learn so necessarily I do whatever the answer was in your first post in an lvar you have to add the unit as you told me just add number to solve the problem : 1 (>L:LIGHTING_STROBE_0, Number) 1 (>L:STROBE_0_Auto, Number) 1 (>K:STROBES_SET) but your suggested script is simpler and it works Thanks for your help
Archived
This topic is now archived and is closed to further replies.