Good morning, first time poster here, hoping someone can help me out here as I’m relatively new to AAO scripts and I’m trying to make some complex ones for my new Honeycomb Foxtrot Stick’s multi-function buttons shown here: https://flyhoneycomb.com/products/foxtrot-aviation-stick?srsltid=AfmBOopGJAGE9-OTfYNgefRyvIEluwnKk0QB1-YWFWHQCS-5PhO8aWOP
The top right rotary with the red line on it is a 3 way rotary switch that I’m trying to use to automate 3 complex sequences in the Fenix A320 since I’m playing in VR and want to avoid using my mouse whenever possible.
The sequences themselves are working, but they can not activate as soon as I rotate the switch to a new position and I need to introduce a delay.
At the end of a flight and I’ve returned to the gate, I need to go from position 3 on the right, over to position 1 on the left, without position 2 in the middle being activated while rotating the switch from right to left.
I relied on Gemini to learn a lot of this stuff, but it’s recommendation for a 4th script (Logic Hold Delay, see below) doesn’t work as expected. This so called Logic Hold Delay is an Automated Script that’s supposed to wait 5 seconds before running any of the 3 position scripts, but they are running immediately still.
You’ll see “Switch State” command lines at the beginning of all 3 scripts, those are supposed to be working in tandem with the 4th script (Logic Hold Delay).
Screenshots of the device, AAO Assigned Buttons and Scripts available here: https://imgur.com/a/Si8GJSX
Look forward to your thoughts on how to pull this off and complete my project!
Thanks ![]()
Position 1 (Ending a flight at the gate): EXT PWR On then ENG 1 & 2 Off
1·(>L:Switch_State)
2·(>L:S_OH_ELEC_EXT_PWR,·Number)
(WAIT:2000)
·(CALL:FNX320_PED-ENG_MASTER_1_OFF)
(WAIT:2000)
·(CALL:FNX320_PED-ENG_MASTER_2_OFF)
(WAIT:2000)
·(CALL:FNX320_OH-All·Fuel·Off)
(WAIT:2000)
Position 2 (Starting a flight at the gate): APU & ENG2 Start Sequence
2·(>L:Switch_State)
·(CALL:FNX320_OH-ELEC_APU_MASTER_ON)
(WAIT:2000)
·(CALL:FNX320_OH-ELEC_APU_START)
(WAIT:70000)
·(CALL:FNX320_OH-PNEUMATIC_APU_BLEED_ON)
(WAIT:2000)
2·(>L:S_OH_ELEC_EXT_PWR,·Number)
(WAIT:2000)
·(CALL:FNX320_OH-All·Fuel·On)
(WAIT:2000)
·(CALL:FNX320_PED-ENG_MODE_START)
(WAIT:1000)
·(CALL:FNX320_PED-ENG_MASTER_2_ON)
(WAIT:45000)
Position 3 (Starting ENG1 after ENG2 is available): ENG1 Start & APU Off Sequence
3·(>L:Switch_State)
·(CALL:FNX320_PED-ENG_MASTER_1_ON)
(WAIT:45000)
·(CALL:FNX320_OH-ELEC_APU_MASTER_OFF)
(WAIT:2000)
·(CALL:FNX320_PED-ENG_MODE_NORM)
(WAIT:2000)
Logic Hold Delay Script
//·1.·Detect·if·the·switch·moved·to·a·new·position
(L:Switch_State)·(L:Prev_Switch_State)·!=·if{
····(P:Absolute·Time,·Seconds)·(>L:Switch_Start_Time)
····(L:Switch_State)·(>L:Prev_Switch_State)
····0·(>L:Action_Fired)
}
//·2.·Check·if·it·has·been·held·for·5·seconds·and·not·yet·triggered
(P:Absolute·Time,·Seconds)·(L:Switch_Start_Time)·-·5·>=·
(L:Action_Fired)·0·==·&&·if{
····
····//·3.·Trigger·your·original·script·logic·based·on·position
····(L:Switch_State)·1·==·if{·(CALL:Fenix·A320-EXT·PWR·On·then·ENG·1·&·2·Off)·}
····(L:Switch_State)·2·==·if{·(CALL:Fenix·A320-APU·&·ENG2·Start·Sequence)·}
····(L:Switch_State)·3·==·if{·(CALL:Fenix·A320-ENG1·Start·&·APU·Off·Sequence)·}
····
····1·(>L:Action_Fired)
}