February 7, 20233 yr I'm trying to find a way to switch between FMS and MAN on the Speed Mode knob. I have checked the behaviors in developer mode and located the position value for the two switches. However, I don't know what kind of variable "AUTOPILOT_Speed_Mode_Position" is and I can't find it in the sim events or sim vars in AAO. Does that mean this is an LVar?
February 7, 20233 yr Commercial Member Where and how did you find it? The name on its own is meaningless, that could be any kind of variable. LORBY-SI
February 7, 20233 yr Commercial Member OK, I see. You were looking at the O: variable. You cannot use that one, that is an object variable that cannot be accessed from the outside. The actual operation is controlled by this one (L:XMLVAR_SpeedIsManuallySet,·Number) (it is called an "LVar" because of the "L:"). When you go to "Scripting->Read LVars from sim", AAO will collect all active LVars so you can use them directly. Or you simply wrap the variable into RPN scripts: FMS mode script 0·(>L:XMLVAR_SpeedIsManuallySet,·Number) Man mode script 1·(>L:XMLVAR_SpeedIsManuallySet,·Number) Toggle script 1·(L:XMLVAR_SpeedIsManuallySet,·Number)·-·(>L:XMLVAR_SpeedIsManuallySet,·Number) Edited February 7, 20233 yr by Lorby_SI LORBY-SI
February 7, 20233 yr Author Ok that's what was confusing me since I didn't see L or H or B in the component variables drop down. I didn't know what an O: variable was. Thanks for the explanation and help.
February 7, 20233 yr Commercial Member Reverse Polish Notation (flightsimulator.com) Scroll down a bit, there is a section about Variable Types LORBY-SI
Archived
This topic is now archived and is closed to further replies.