Adamski Posted April 22, 2022 Report Share Posted April 22, 2022 https://www.nzfsim.org/?smd_process_download=1&download_id=3241 I have an X-56 stick/throttle combo and often find that when panning around in external view (taking screenshots) I can't help moving the stick slightly - disturbing (or even de-activating) the autopilot. Also - my X-56 suffers from [the dreaded] "throttle creep", which is particularly bothersome with the FBW A32NX when it drifts out of one of the detents. These scripts are an attempt to lock/disable all flight controls (including throttle) when the autopilot is active. 1) AP_Freeze_ON ======================= Checks to see which A/P is enabled (GEN or FBW). If either is enabled, all controls axes are disabled (Offset 0x310A set to 255). 2) AP_Freeze_OFF ======================= Resets/enables all controls axes (Offset 0x310A set to 0). The scripts are mapped to separate switches on the throttle base, using the FSUIPC "Button & Switch Assignments": BUTTON 1 (toggles freeze to ON): Control sent when button pressed: Lua AP Freeze On Control sent when button released: Lua Kill AP Freeze OFF BUTTON 2 (toggles freeze to OFF): Control sent when button pressed: Lua AP Freeze OFF Control sent when button released: Lua Kill AP Freeze On IMPORTANT: For FSUIPC to be able to read the status of the FBW autopilot, the following two lines need to be added - either to fsuipc.ini or (if using profiles) to your FBW profile. Make backups of the original files! [LvarOffsets] 1=A32NX_AUTOPILOT_1_ACTIVE=UB0x66C0 After the first run, the size/position of the windows can be changed in the [ExtWindow] entry (x,y,size x,size y). [ExtWindow] Fixed Window Freeze ON=[30,30,130,56] Fixed Window Freeze OFF=[30,100,130,56] DISCLAIMER This is my first ever foray into LUA programming (!), so these scripts may be far from perfect - please use at your own risk! CREDITS 1) John Dowson for his patience. 2) Jason Fayre (the original author of the MyDisplay.lua script that was a starting point for mine. 3) Pete Dowson for the original FSUIPC. I can't imagine running any sim without it. ======================================================================= Adamski_NZ www.nzfsim.org 1 Link to comment Share on other sites More sharing options...
bander Posted September 6 Report Share Posted September 6 hello, can you make one for fenix and explain where i should put those files? thanks Link to comment Share on other sites More sharing options...
John Dowson Posted September 7 Report Share Posted September 7 13 hours ago, bander said: where i should put those files? Lua scripts should be placed in your FSUIPC installation folder, unless you have LuaPath set in which case they go in that folder - see the documentation. 13 hours ago, bander said: can you make one for fenix I don't have the fenix so can't help much, but you just need to look into replacing the lvar A32NX_AUTOPILOT_1_ACTIVE with something similar for the fenix, i.e. add an lvar (or something) to that offset which indicates when the AP is active. Maybe the OP @Adamski can help... John Link to comment Share on other sites More sharing options...
bander Posted September 8 Report Share Posted September 8 thanks so much for a quick reply. TBH i have no clue what are you talking about 🙂 regarding LUAPATH !! any way i will wait for another help if there is .. otherwise i`ll stuck with what i got. thanks anyway ... Link to comment Share on other sites More sharing options...
John Dowson Posted September 8 Report Share Posted September 8 7 hours ago, bander said: TBH i have no clue what are you talking about 🙂 regarding LUAPATH Which is why I said to refer to the documentation! it is an ini parameter that changes the default location where the lua files should be located. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now