CAPTAIN SIM FORUM
767 Captain II (P3D4) >> 767 Captain II - GeneralĀ  >> Disconnect your Autothrottle THE CORRECT WAY
https://www.captainsim.org/forum/csf.pl?num=1588301323

Message started by violinvelocity on May 1st, 2020 at 2:48am

Title: Disconnect your Autothrottle THE CORRECT WAY
Post by violinvelocity on May 1st, 2020 at 2:48am
This applies to the 757 as well, however I'm not sure if it is the same IPC code.

I've noticed that the FSUIPC and P3D standard control for "Auto Throttle Arm" turns off the autothrottle arm switch in the aircraft.

However, this is not an appropriate way to disconnect the auto throttles for making a manual landing. We only turn off this switch during an abnormal situation- when directed by a checklist.

If you want to hand-fly (AP and A/T off), you'll actually click the small button on the side of the throttles- which will disconnect the A/T , and a second press will cancel the caution.

The way to accomplish this with a joystick button push is through a lua file. Place the below folder into your modules folder, or C:\Users\*name*\Documents\Prepar3D v4 Add-ons\FSUIPC6

Now you can assign a button on your hardware device to "Lua ATdisconnect" instead of trying to find the button with your mouse during a high workload time.

Copy the text below into a new text file, and save as "ATdisconnect.lua" - make sure the extension reads "lua"- and throw that in your FSUIPC folder.

ipc.writeLvar('L:P05_007_BUT',1)
ipc.sleep(500)
ipc.writeLvar('L:P05_007_BUT',0)


Title: Re: Disconnect your Autothrottle THE CORRECT WAY
Post by Alex T on May 1st, 2020 at 3:16am

violinvelocity wrote on May 1st, 2020 at 2:48am:
This applies to the 757 as well, however I'm not sure if it is the same IPC code.

I've noticed that the FSUIPC and P3D standard control for "Auto Throttle Arm" turns off the autothrottle arm switch in the aircraft.

However, this is not an appropriate way to disconnect the auto throttles for making a manual landing. We only turn off this switch during an abnormal situation- when directed by a checklist.

If you want to hand-fly (AP and A/T off), you'll actually click the small button on the side of the throttles- which will disconnect the A/T , and a second press will cancel the caution.

The way to accomplish this with a joystick button push is through a lua file. Place the below folder into your modules folder, or C:\Users\*name*\Documents\Prepar3D v4 Add-ons\FSUIPC6

Now you can assign a button on your hardware device to "Lua ATdisconnect" instead of trying to find the button with your mouse during a high workload time.

Copy the text below into a new text file, and save as "ATdisconnect.lua" - make sure the extension reads "lua"- and throw that in your FSUIPC folder.

ipc.writeLvar('L:P05_007_BUT',1)
ipc.sleep(500)
ipc.writeLvar('L:P05_007_BUT',0)



Thanks this is great! I'd been using a macro until now to push the quick disconnect buttons, I'll try this.

Title: Re: Disconnect your Autothrottle THE CORRECT WAY
Post by Gjl1995 on May 3rd, 2020 at 7:50pm
hi there would you know if it is different for fsuipc 5.

i've made the .lua file with the lvar text, placed it in my modules and assigned it in fsuipc. however it has no result when i press the button that was assigned and the autothrothle is still active?

Gr gerben lei


Title: Re: Disconnect your Autothrottle THE CORRECT WAY
Post by Desmond on May 22nd, 2021 at 1:00am
Hi there, I've been struggling with this from months...
The lua script doesn't work for me (Neither in the 757 nor in the 767), but the animation of the button pressed is displayed. I have this problem also with other momentary switches like the Go Around one.


Code (]
ipc.writeLvar('L:P05_007_BUT',1)
ipc.sleep(500)
ipc.writeLvar('L:P05_007_BUT',0)
[/code):



However, others lvar such as lights work properly, like this:

[code]-- Beacon lights
ipc.writeLvar('O20_002_BUT',1)


I believe I'm missing something but I cannot find it :(

Title: Re: Disconnect your Autothrottle THE CORRECT WAY
Post by Tim Capps on Jun 10th, 2021 at 6:45pm
Brilliant! You learn something new every day.

Title: Re: Disconnect your Autothrottle THE CORRECT WAY
Post by CaptKornDog on May 2nd, 2022 at 7:28pm

Desmond wrote on May 22nd, 2021 at 1:00am:
Hi there, I've been struggling with this from months...
The lua script doesn't work for me (Neither in the 757 nor in the 767), but the animation of the button pressed is displayed. I have this problem also with other momentary switches like the Go Around one.


Code (]
ipc.writeLvar('L:P05_007_BUT',1)
ipc.sleep(500)
ipc.writeLvar('L:P05_007_BUT',0)
[/code):



However, others lvar such as lights work properly, like this:

[code]-- Beacon lights
ipc.writeLvar('O20_002_BUT',1)


I believe I'm missing something but I cannot find it :(


Did you ever find a solution to this?  I see the animation of the AT disconnect button clicking as well but seemingly no function.

Thanks.

Title: Re: Disconnect your Autothrottle THE CORRECT WAY
Post by Desmond on May 7th, 2022 at 5:38pm
Yes ! This disconnects the AT:


Code (]ipc.writeLvar("klid", 2605007)[/code):


I use this whole code to have the animation too

[code]ipc.writeLvar("klid", 2605007)
ipc.writeLvar('L:P05_007_BUT',1)
ipc.sleep(300)
ipc.writeLvar('L:P05_007_BUT',0)

Title: Re: Disconnect your Autothrottle THE CORRECT WAY
Post by CaptKornDog on May 14th, 2022 at 5:42am
Thanks very much, that seemed to work.  Still battling the AT kicking back on and going full thrust on rollout but this seems to at least click the disconnect buttons correctly in the air; thanks.

CAPTAIN SIM FORUM » Powered by YaBB 2.6.0!
YaBB Forum Software © 2000-2024. All Rights Reserved.