Can’t seem to subscribe to a certain LVAR

Peer support for Air Manager desktop users

Moderators: russ, Ralph

Message
Author
Klauseren
Posts: 2
Joined: Mon Mar 20, 2023 9:00 pm

Can’t seem to subscribe to a certain LVAR

#1 Post by Klauseren »

Using the Carenado Bonanza 35 from marketplace, I’m trying to subscribe to the LVAR that tells me if Yaw Damper is on or off, so I can turn on a light in Air Manager.

However, I can’t seem to subscribe to it.

Using MSFS developer mode I found that the LVAR is called AUX_AUTOPILOT_YAW_DAMPER_BOOL
and it’s value changes between 0.0 and 1.0 in the developer window, according to me toggling the yaw damper.

However, in Air Manager I can’t seem to get that value. It’s always “false”. As you can see on the left side in my screenshot, I tried different variations of the LVAR but they are all false, despite the yaw damper is true (“1.0” as seen in the middle developer window).

Any ideas what I’m doing wrong?

05D22EE3-A786-4FB4-AE4B-9250DE7079F1.jpeg

SimPassion
Posts: 5336
Joined: Thu Jul 27, 2017 12:22 am

Re: Can’t seem to subscribe to a certain LVAR

#2 Post by SimPassion »

Klauseren wrote: Mon Mar 20, 2023 9:04 pm Using the Carenado Bonanza 35 from marketplace, I’m trying to subscribe to the LVAR that tells me if Yaw Damper is on or off, so I can turn on a light in Air Manager.

However, I can’t seem to subscribe to it.

Using MSFS developer mode I found that the LVAR is called AUX_AUTOPILOT_YAW_DAMPER_BOOL
and it’s value changes between 0.0 and 1.0 in the developer window, according to me toggling the yaw damper.

However, in Air Manager I can’t seem to get that value. It’s always “false”. As you can see on the left side in my screenshot, I tried different variations of the LVAR but they are all false, despite the yaw damper is true (“1.0” as seen in the middle developer window).

Any ideas what I’m doing wrong?


05D22EE3-A786-4FB4-AE4B-9250DE7079F1.jpeg
Perhaps try with other thing than BOOL, like FLOAT or INT for example ...

User avatar
Sling
Posts: 5237
Joined: Mon Sep 11, 2017 2:37 pm
Contact:

Re: Can’t seem to subscribe to a certain LVAR

#3 Post by Sling »

Use Enum or Number as the type not Bool. This is an AM perculiarity.

User avatar
Ralph
Posts: 7878
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: Can’t seem to subscribe to a certain LVAR

#4 Post by Ralph »

I would rather suggest a double. But I suspect that this is a Simconnect/Wasm perculiarity :)

Klauseren
Posts: 2
Joined: Mon Mar 20, 2023 9:00 pm

Re: Can’t seem to subscribe to a certain LVAR

#5 Post by Klauseren »

"Double" worked, thank you!!
I don't know why I didn't even consider that... :geek:

User avatar
Sling
Posts: 5237
Joined: Mon Sep 11, 2017 2:37 pm
Contact:

Re: Can’t seem to subscribe to a certain LVAR

#6 Post by Sling »

A double for every true or false seems overkill. Would be better if bool just worked.

User avatar
Ralph
Posts: 7878
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: Can’t seem to subscribe to a certain LVAR

#7 Post by Ralph »

There are no booleans in Lvar country as far as I know.

User avatar
Sling
Posts: 5237
Joined: Mon Sep 11, 2017 2:37 pm
Contact:

Re: Can’t seem to subscribe to a certain LVAR

#8 Post by Sling »

Most of them are Bool according to MSFS xml logic.

SimPassion
Posts: 5336
Joined: Thu Jul 27, 2017 12:22 am

Re: Can’t seem to subscribe to a certain LVAR

#9 Post by SimPassion »

Sling wrote: Tue Mar 21, 2023 10:03 pm Most of them are Bool according to MSFS xml logic.
Yes, however after further testing I've seen many are transcribed to numeral as 0 or 1, meaning boolean false and true respectively in the logic

User avatar
Sling
Posts: 5237
Joined: Mon Sep 11, 2017 2:37 pm
Contact:

Re: Can’t seem to subscribe to a certain LVAR

#10 Post by Sling »

Yes the sim uses 0 or 1 as it’s Boolean states.

Post Reply