Outcome of today’s tests:
The following two LUA and Preset implementations work:
-- LUA implementation 1
ipc.execCalcCode(" (A:PLANE HEADING DEGREES GYRO, degrees) (>K:HEADING_BUG_SET) ")
-- LUA implementation 2
bearing = ipc.readUW(0x2FA8)
ipc.control(66042, bearing);
And Presets:
SYNC_HDG_BUG_TO_HSI_HDG1#(A:PLANE HEADING DEGREES GYRO, degrees) (>K:HEADING_BUG_SET)
SYNC_HDG_BUG_TO_HSI_HDG2#(A:PLANE HEADING DEGREES MAGNETIC, degrees) (>K:HEADING_BUG_SET)
However, I struggle with the ALT command:
SYNC_AP_ALT_TO_ACT_ALT0#(A:PLANE ALTITUDE, feet) (>K:AP_ALT_VAR_SET_ENGLISH) (real alt)
As the Preset XCub Ap Alt Push (altimeter alt)
Both work as strange as the mouse click implementation: Step down/up by 100ft until reaching the actual Alt by +/- 100ft.