I'm working on a simple autopilot app, and can't make ends meet on this.
********* FSUIPC4, Version 4.70b by Pete Dowson *********
Running in "Microsoft Flight Simulator X", Version: 10.0.61472.0 (SimConnect: 10.0.61259.0)
Here goes the use case:
Aircraft is flying established on localizer and in altitude presribed by ILS.
AP master, ALT HOLD and APR HOLD are engaged (0x07BC, 0x0800, 0x07FC and 0x07D0 are equal to 1 (U32))
I am writing to these offsets from my application, and lights on AP panel illuminate correctly and aircraft does what it is supposed to do (captures localizer and holds the altitude).
However, no matter what I do, it just misses IAF and doesn't follow glideslope, ALT light still on as is 0x07D0 offset.
If I do the same procedure using buttons on the panel, it actually captures GS, ALT light goes off,and 0x07D0 returns 0.
Now what am I doing wrong?
I tried setting alone 0x0800, or both 0x800 and 0x07FC in same procedure - same result.
//// this is how it looks when APR button is set on panel in FSX
15148306 Monitor IPC:07FC (U32) = 1
15148306 SimRead: 07FC="AUTOPILOT GLIDESLOPE HOLD"
INT32: 1 (0x00000001)
15148306 Monitor IPC:0800 (U32) = 1
15148306 SimRead: 0800="AUTOPILOT APPROACH HOLD"
INT32: 1 (0x00000001)
// and this is how it looks when the button is I write the 0x800 and 0x7FC remotely
14004304 Monitor IPC:07FC (U32) = 1
14004304 Monitor IPC:0800 (U32) = 1
Any suggestions?