Mach Hold not working for 2024

Version:1.3.23.0

Frequency: Consistently

Bug description: The autopilot function MACH HOLD does not work in FS2024, i.e., does not hold the airspeed value, on the legacy Flysimware Lear35A. MACH HOLD does work in FS2020.

Hello @Flysimware

It seems to be the result of how your LEAR_AP_SPD component is interpreted.
There is a space in a K event in your second update code:
image

The RPN interpreter in MSFS 2020 does not like that and the K event is not recognized.
This is visible in the Behaviors tool logger, where the K event does not appear:
image

This was addressed in MSFS 2024 and this K event is now correctly interpreted and sent.
So on MSFS 2024, when you activate the MACH HOLD mode, AP_MACH_VAR_SET with value 0 is constantly sent.
That’s probably not what you wanted, but you never noticed because of this issue.

Does this make sense?

Regards,
Sylvain

2 Likes

Hi @FlyingRaccoon,

Thanks for the info on the typo. Weird this typo worked in 2020 and was never caught.

I see you mentioned that the RPN interpreter for 2020did not like the extra space. But our bug is only for 2024. Was that a typo and you mean 2024?

Hello @Flysimware

The AP bug occurs when the K event is being sent (target mach speed constantly set to 0).
On 2020, the K event was not recognized and was never sent.
The typo essentially hid the issue you are now seeing in 2024 but the root problem lies in your RPN code as far as I can tell.

Regards,
Sylvain

2 Likes

Hi @FlyingRaccoon,

Yep both were not working. Thanks.