September 21, 20232 yr Hi, I'm looking for some help in setting a binding for heading_bug_set that sets the heading bug to the current heading. Example, plane is flying on a 168deg heading. I want to set a button to automatically align the bug with heading 168deg. I've selected HEADING_BUG_SET as the key down event, but it defaults to 360deg. Is there a way to accomplish the above? Thank you! Marcus
September 21, 20232 yr A&O includes a script to accomplish this. (i'm not home so can't look it up). Edited September 21, 20232 yr by hs118 My MSFS 2020 repaints: Flightsim.to - Profile of HStreet Working on MSFS 2024 versions.
September 21, 20232 yr Commercial Member That is what the RPN scripting engine is for in AAO. If the aircraft in question uses the default events from the SDK, then you can assign "Scripts->ACT_HEADING_TO_AP" to your button (scripts appear in the same list as the events, and this script is one of the pre-configured examples that comes with AAO) If the script works or not depends on what aircraft you are using in which simulator. Especially in MSFS aircraft often do not use the SDK events, so more information is required when you are asking about a specific plane. Edited September 21, 20232 yr by Lorby_SI LORBY-SI
September 22, 20232 yr Author Awesome! Thank you so much! I haven't scripted anything before, so will learn how. Nice to know you already added it by default though 🙂 thanks!
September 23, 20232 yr Commercial Member 10 hours ago, marc1184 said: so will learn how Reverse Polish Notation (flightsimulator.com) Simulation Variables (flightsimulator.com) Event IDs (flightsimulator.com) And don't forget to check for example on flightsim dot to for script packages and templates. Even if a package was made for different hardware (like the StreamDeck) there usually is a separate script file that you can import into AAO and use with all other types of hardware. Edited September 23, 20232 yr by Lorby_SI LORBY-SI
September 23, 20232 yr For some planes this one works for me: (A:PLANE HEADING DEGREES GYRO, Degrees) (>K:HEADING_BUG_SET)
October 12, 20232 yr For those flying the FlightFX Honda Jet HA-420 this also worked for me. Seems like the H: values in the HJet Control Bindings v2.1 spreadsheet do not work in AAO. Regards.
October 12, 20232 yr Commercial Member 1 hour ago, n116dh said: For those flying the FlightFX Honda Jet HA-420 this also worked for me. Seems like the H: values in the HJet Control Bindings v2.1 spreadsheet do not work in AAO. Regards. Depends. Care to share that document? Can you give us a specific example of what you tried that didn't work and how exactly that "trial" was done? IMHO the best option is still to look for yourself, using the MSFS Developer Mode -> Tools -> Behaviors -> click back into the MSFS window -> hover the mouse over the button -> Press Ctrl - G -> Look at the code in the BehaviourDebug Window. At the bottom of the components list there is often something like "ASOBO_GT_Interaction_LeftSingle_Code" - and it contains the actual K: event, BVar, HVar, Script etc. that is being triggered when you left click the button with the mouse. There I can see that most of the autopilot buttons of the HJet use default K: events, except some that use BVars, like VNAV 1 (>B:AUTOPILOT_VNAV_Mode_Toggle) or YD 1 (>B:AUTOLIPT_YD_Button_Toggle) and some that use entire scripts, like CPL (L:CPL Pushed, Bool) ! (>L:CPL Pushed, Bool) or AT (L:CSC Pushed, Bool) ! (>L:CSC Pushed, Bool) And finally the Heading Knob which uses BVars again1 (>B:AUTOPILOT_Heading_Sync_Push) 1 (>B:AUTOPILOT_Heading_Inc) 1 (>B:AUTOPILOT_Heading_Dec) etc. Be mindful that BVars only work when AAO is started with the "As Administrator" option. BVars also don't have fixed names, they are multifunctional. For example you can use _Set instead of _Toggle if you want to force a specific state (0/1 = OFF/ON) Edited October 12, 20232 yr by Lorby_SI LORBY-SI
October 14, 20232 yr Sir, thank you for your kind response. I have started using the Behaviors tool as you suggest. Thanks for that tip as well. I think I was a bit hasty in my comment about H: vars -- as it really boils down to what you say about var types and vars themselves are used -- which can be an interesting journey. Regards P.S. The HJet bindings document comes with the product and is downloadable from their Discord. HubHop also has them -- Vendor MGHarib. Edited October 14, 20232 yr by n116dh
Archived
This topic is now archived and is closed to further replies.