“AUTOPILOT ALTITUDE LOCK VAR” no longer matches the KAP140 display at all times

:wave: Thank you using the Bug section, using templates provided will greatly help the team reproducing the issue and ease the process of fixing it.

Are you using Developer Mode or made changes in it?

No

Have you disabled/removed all your mods and addons?

Yes

Brief description of the issue:

The variable used to read the autopilot selected altitude “AUTOPILOT ALTITUDE LOCK VAR” no longer mirrors the displayed target altitude on the KAP140 display. It sometimes matches when the AP is on however it should mirror the target value at all times. Particularly when selecting a new target altitude with the rotary knob.

Provide Screenshot(s)/video(s) of the issue encountered:

N/A

Detailed steps to reproduce the issue encountered:

Load the C172 with KAP140 autopilot and while monitoring this variable, change the target altitude. The virtual cockpit display will respond accordingly but the variable does not.

PC specs and/or peripheral set up if relevant:

N/A

Build Version # when you first started experiencing this issue:

I believe it stopped working correctly after SU10 but it may of been prior to that.

did you ever solve this issue or find a workaround please ? I am experiencing the same thing over a year later. It is clearly a vital variable for home cockpit building so it needs to be addressed.

Nope it’s been bugged ever since. We read all the threads they say. One year on and still not a solution.

And not even a “feedback logged”.

This is not a bug, and the variable is working as designed.

As in FSX, autopilots are allowed to select from an array of altitude lock slots for different purposes. Each slot can hold a different value, and the value of the main var without a slot index correlates to whatever slot the autopilot has selected. Autopilots may change slots depending on the situation (such as changing to a slot without a value in the case they don’t want to capture an altitude in their current mode, or using one slot for pilot preselect and another for the VNAV managed alt, etc).

For the C172, you will need to read one of the slots instead of the unslotted var. I believe AUTOPILOT ALTITUDE LOCK VAR:1, AUTOPILOT ALTITUDE LOCK VAR:2, or AUTOPILOT ALTITUDE LOCK VAR:3 will give you what is stored on the KAP’s preselect slot at all times.

I tried them all a year ago and none of them gave me what I needed. I want to be able to display and change what the vc has at all times. How can I do that if it’s working as you say? It’s not just the C172 it’s almost every aircraft in the sim that uses this method of altitude preselect. Steam, G1000, first party and add-ons they are all affected.
I’ll play with it again to see if it’s any different now but never saw anything in release notes that suggested this was changed. I hope your right.

I just tried this. I was getting a bogus value when I first started up the plane (AT42-600) But once I clicked the autopilot button one time - the values were correct all the time after that (I think - just did it). So… the system must be initializing this the first time that the AP button is clicked. That is workable to me. If you are running scripts - just push the AP button when the plane is loaded??? And all 4 of the variables had the correct value AUTOPILOT ALTITUDE LOCK VAR :1 :2 :3 all had the AP altitude value.