Thanks for the LUA code - my FS accepted it right away. However, it's not completely working yet. What I want to do is simulate Side Stick Priority in the A320.
This is my FSUIPC.ini:
ButtonRepeat=20,00
0=P0,2,Cx010007C8,x00 P0 = Cpt. side Autopilot Master off
1=P0,2,Cx010007BC,x00 Autopilot heading lock off is required to switch off the autopilot light (my FCU is from CP Flight, with Wilco Airbus module)
2=P0,2,Cx01006DF1,x01 Offset for Cpt. priority + FO red arrow
3=P1,2,Cx010007C8,x00 P1 = FO side Autopilot Master off
4=P1,2,Cx010007BC,x00 Autopilot heading lock off is required to switch off the autopilot light
5=P1,2,Cx01006DF2,x01 Offset for FO priority + Cpt. red arrow
Unfortunately I can't assing an offset to the autopilot button in the CP Flight FCU. Therefore I need to query offset 07BC. It already works on the Cpt. side but on the FO side, offset 6DF2 is not set to value '1'.
Another problem occurs when FO priority is turned on with Cpt. priority already being active. In that case, 6DF1 should be set to value '0' and 6DF2 value '1' and vice versa.
I'd be really greatful if you could help me once more!
Regards,
Fritz