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?
Can’t seem to subscribe to a certain LVAR
-
- Posts: 5346
- Joined: Thu Jul 27, 2017 12:22 am
Re: Can’t seem to subscribe to a certain LVAR
Perhaps try with other thing than BOOL, like FLOAT or INT for example ...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
Re: Can’t seem to subscribe to a certain LVAR
Use Enum or Number as the type not Bool. This is an AM perculiarity.
Air Manager panels at https://www.experimentalsimavionics.com
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Re: Can’t seem to subscribe to a certain LVAR
I would rather suggest a double. But I suspect that this is a Simconnect/Wasm perculiarity
Re: Can’t seem to subscribe to a certain LVAR
"Double" worked, thank you!!
I don't know why I didn't even consider that...
I don't know why I didn't even consider that...
Re: Can’t seem to subscribe to a certain LVAR
A double for every true or false seems overkill. Would be better if bool just worked.
Air Manager panels at https://www.experimentalsimavionics.com
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Re: Can’t seem to subscribe to a certain LVAR
There are no booleans in Lvar country as far as I know.
Re: Can’t seem to subscribe to a certain LVAR
Most of them are Bool according to MSFS xml logic.
Air Manager panels at https://www.experimentalsimavionics.com
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
-
- Posts: 5346
- Joined: Thu Jul 27, 2017 12:22 am
Re: Can’t seem to subscribe to a certain LVAR
Yes the sim uses 0 or 1 as it’s Boolean states.
Air Manager panels at https://www.experimentalsimavionics.com
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D