These are the Support Forums for FSUIPC and related products.
These forums replace the old support forums which have been running for 20+ years. The old forums contain a wealth of information on all FSUIPC products, but are now no longer available.
Please note that you will need to Register and Login to post for support, and also to download attachments. You can view these forums without registering.
Support is also available via Discord. Please use the following invite link to join the FSUIPC Discord server:
https://discord.gg/zjwUTrxmmE
BlueBird Sim B757 - autopilot disengage button on the Pilot Yoke ?
BlueBird Sim B757.
The autopilot disengage button on the Pilot yoke.
While discussing this issue, I found information on how to do this in AxisAndOhs… using a script.
1·(>O:YOKE_CONTROLS:BTN_YOKE_AUTOPILOT_DISENGAGE_PILOT_COMP:btn_yoke_autopilot_disengage_pilot_ButtonLocked,·bool)
1·(>L:btn_yoke_autopilot_disengage_pilot,·bool)
1·0·>·if{·0·(>L:btn_yoke_autopilot_disengage_pilot_HELD,·bool)·}
(E:SIMULATION·TIME,·second)·(>O:YOKE_CONTROLS:BTN_YOKE_AUTOPILOT_DISENGAGE_PILOT_COMP:btn_yoke_autopilot_disengage_pilot_PressTime,·second)
1·(>K:AUTOPILOT_OFF)
(WAIT:100)
0·(>O:YOKE_CONTROLS:BTN_YOKE_AUTOPILOT_DISENGAGE_PILOT_COMP:btn_yoke_autopilot_disengage_pilot_ButtonLocked,·bool)
0·(>L:btn_yoke_autopilot_disengage_pilot,·bool)
0·(>L:btn_yoke_autopilot_disengage_pilot_HELD,·bool)How can I do this (port it) to FSUIPC7?
This script work !!
The only thing missing is the button animation (but that's not really important)
ipc.log("AP DISC: executing")
ipc.execCalcCode([[
1 (>O:YOKE_CONTROLS:BTN_YOKE_AUTOPILOT_DISENGAGE_PILOT_COMP:btn_yoke_autopilot_disengage_pilot_ButtonLocked, bool)
1 (>L:btn_yoke_autopilot_disengage_pilot, bool)
1 0 > if{ 0 (>L:btn_yoke_autopilot_disengage_pilot_HELD, bool) }
(E:SIMULATION TIME, second) (>O:YOKE_CONTROLS:BTN_YOKE_AUTOPILOT_DISENGAGE_PILOT_COMP:btn_yoke_autopilot_disengage_pilot_PressTime, second)
1 (>K:AUTOPILOT_OFF)
(WAIT:100)
0 (>O:YOKE_CONTROLS:BTN_YOKE_AUTOPILOT_DISENGAGE_PILOT_COMP:btn_yoke_autopilot_disengage_pilot_ButtonLocked, bool)
0 (>L:btn_yoke_autopilot_disengage_pilot, bool)
0 (>L:btn_yoke_autopilot_disengage_pilot_HELD, bool)
]])
ipc.log("AP DISC: code sent")
ipc.log("AP DISC: executing") ipc.execCalcCode(' 1 (>O:YOKE_CONTROLS:BTN_YOKE_AUTOPILOT_DISENGAGE_PILOT_COMP:btn_yoke_autopilot_disengage_pilot_ButtonLocked, bool) 1 (>L:btn_yoke_autopilot_disengage_pilot, bool) 1 0 > if{ 0 (>L:btn_yoke_autopilot_disengage_pilot_HELD, bool) } (E:SIMULATION TIME, second) (>O:YOKE_CONTROLS:BTN_YOKE_AUTOPILOT_DISENGAGE_PILOT_COMP:btn_yoke_autopilot_disengage_pilot_PressTime, second) 1 (>K:AUTOPILOT_OFF) SLEEP:100 0 (>O:YOKE_CONTROLS:BTN_YOKE_AUTOPILOT_DISENGAGE_PILOT_COMP:btn_yoke_autopilot_disengage_pilot_ButtonLocked, bool) 0 (>L:btn_yoke_autopilot_disengage_pilot, bool) 0 (>L:btn_yoke_autopilot_disengage_pilot_HELD, bool) ') ipc.log("AP DISC: code sent")Posted by: @smn204The only thing missing is the button animation (but that's not really important)
Try changing the '(WAIT:100)' to 'SLEEP:100' to see if that helps...Also, the calc code should be a string so enclose in quotes and not square brackets, i.e.
ipc.log("AP DISC: executing")
ipc.execCalcCode('
1 (>O:YOKE_CONTROLS:BTN_YOKE_AUTOPILOT_DISENGAGE_PILOT_COMP:btn_yoke_autopilot_disengage_pilot_ButtonLocked, bool)
1 (>L:btn_yoke_autopilot_disengage_pilot, bool)
1 0 > if{ 0 (>L:btn_yoke_autopilot_disengage_pilot_HELD, bool) }
(E:SIMULATION TIME, second) (>O:YOKE_CONTROLS:BTN_YOKE_AUTOPILOT_DISENGAGE_PILOT_COMP:btn_yoke_autopilot_disengage_pilot_PressTime, second)
1 (>K:AUTOPILOT_OFF)
SLEEP:100
0 (>O:YOKE_CONTROLS:BTN_YOKE_AUTOPILOT_DISENGAGE_PILOT_COMP:btn_yoke_autopilot_disengage_pilot_ButtonLocked, bool)
0 (>L:btn_yoke_autopilot_disengage_pilot, bool)
0 (>L:btn_yoke_autopilot_disengage_pilot_HELD, bool)
')
ipc.log("AP DISC: code sent")
Note also that an issue has been reported with the BlueBird B757 that prevents FSUIPC from seeing the lvars and hvars in this aircraft - see https://fsuipc.com/community/fsuipc7-support/bluebird-b757-issues-reading-and-setting-lvars/.
This issue needs to be fixed by the aircraft developers.
You can also define your own preset for that calculator code (via the myevents,txt file) and assign to that directly rather than using a lua script. Preset calculator code is one line though, so you need to remove the new lines.
Posted by: @fsuipc-supportAlso, the calc code should be a string so enclose in quotes and not square brackets, i.e.
Hmm...
I just replaced the square brackets with quotes (like this)—and the button stopped working! With square brackets - work.
ipc.log("AP DISC: executing")
ipc.execCalcCode('
1 (>O:YOKE_CONTROLS:BTN_YOKE_AUTOPILOT_DISENGAGE_PILOT_COMP:btn_yoke_autopilot_disengage_pilot_ButtonLocked, bool)
1 (>L:btn_yoke_autopilot_disengage_pilot, bool)
1 0 > if{ 0 (>L:btn_yoke_autopilot_disengage_pilot_HELD, bool) }
(E:SIMULATION TIME, second) (>O:YOKE_CONTROLS:BTN_YOKE_AUTOPILOT_DISENGAGE_PILOT_COMP:btn_yoke_autopilot_disengage_pilot_PressTime, second)
1 (>K:AUTOPILOT_OFF)
(WAIT:100)
0 (>O:YOKE_CONTROLS:BTN_YOKE_AUTOPILOT_DISENGAGE_PILOT_COMP:btn_yoke_autopilot_disengage_pilot_ButtonLocked, bool)
0 (>L:btn_yoke_autopilot_disengage_pilot, bool)
0 (>L:btn_yoke_autopilot_disengage_pilot_HELD, bool)
')
ipc.log("AP DISC: code sent")Changing the (WAIT:100) to WAIT:100, SLEEP:100 or (SLEEP:100) .... No any changes, it works the same way, without animation.
Posted by: @fsuipc-supportYou can also define your own preset for that calculator code (via the myevents,txt file)
I did it this now. It work (also without animation)
BB757_AP_DISCONNECT#1 (>O:YOKE_CONTROLS:BTN_YOKE_AUTOPILOT_DISENGAGE_PILOT_COMP:btn_yoke_autopilot_disengage_pilot_ButtonLocked, bool) 1 (>L:btn_yoke_autopilot_disengage_pilot, bool) 1 0 > if{ 0 (>L:btn_yoke_autopilot_disengage_pilot_HELD, bool) } (E:SIMULATION TIME, second) (>O:YOKE_CONTROLS:BTN_YOKE_AUTOPILOT_DISENGAGE_PILOT_COMP:btn_yoke_autopilot_disengage_pilot_PressTime, second) 1 (>K:AUTOPILOT_OFF) (WAIT:100) 0 (>O:YOKE_CONTROLS:BTN_YOKE_AUTOPILOT_DISENGAGE_PILOT_COMP:btn_yoke_autopilot_disengage_pilot_ButtonLocked, bool) 0 (>L:btn_yoke_autopilot_disengage_pilot, bool) 0 (>L:btn_yoke_autopilot_disengage_pilot_HELD, bool)
