flybywiresim / aircraft

The A32NX & A380X Project are community driven open source projects to create free Airbus aircraft in Microsoft Flight Simulator that are as close to reality as possible.
https://flybywiresim.com
GNU General Public License v3.0
5.14k stars 1.12k forks source link

Armed FMAs not working properly #7988

Closed popa15cz closed 1 year ago

popa15cz commented 1 year ago

Aircraft Version

Stable

Build info

{
    "built": "2023-01-08T23:16:53+00:00",
    "ref": "HEAD",
    "sha": "81a8ee3a2e03a24da13cc0bcc4cf3a7d51f188a6",
    "actor": "Saschl <sascharudolf46@gmail.com>",
    "event_name": "manual",
    "pretty_release_name": "stable/v0.9.1"
}

Describe the bug

Hello,

I have problem with A32NX_FMA_LATERAL_ARMED and A32NX_FMA_VERTICAL_ARMED variables.

They don't show the right value how it is written in docs.

You can try it when spawning on runway on pfd there will be CLB, but the VERTICAL_ARMED var will output G/S.

And also VERTICAL_ARMED variable sometimes outputs value that is not written in docs, was 16 or 17 wich was indicating ALT G/S on PFD

I need that variables because i'm fip gauges developer, for example if i want make A320 PFD, i design images and then write a code wich needs variables of course.

Expected behavior

I expected it to work properly

Steps to reproduce

When i started coding Flight mode annunciators for my A320 PFD i encountered this issue with only armed FMAs.

References (optional)

No response

Additional info (optional)

when contacting on discord me send me friend request, i have dms disabled for not friend users

Discord Username (optional)

PΩPA15_CZ#7435

beheh commented 1 year ago

This is not a bug. The A32NX_FMA_LATERAL_ARMED and A32NX_FMA_VERTICAL_ARMED simvars contain a bitmask, as mentioned in a320-simvars.md. This is because multiple modes can be armed at the same time. You will have to decode the bitmasks to get the armed modes.