@Black-Square said in Manipulating Cabin Air Vents via LVars:
I once had someone tell me that L:Vars had no units, and that adding them made no difference. Those words echo in my head almost every day when I have problems, haha.
Unfortunately, the FSUIPC documentation is rather poor on how some of these features work. How to implement them in FSUIPC, yes, but what you're actually doing, not so much. This has mainly been me trying to parse how the large library of pre-made bindings and functions from years of community contributions from all flavors of MSFS.
The example I was looking at for the cowl flaps was from A2A's Comanche cowl flaps, as well as finding the RECIP ENG COWL FLAP POSITION:1 variable in online MSFS SDK where it was defined as a percent. In the manual, you listed 0-100, and it started working once I put the all-important A: in front of the var name. It was only because I have also seen "number" used in that field, as well as "enum," that I thought to try it. As I said, I don't have any documentation with a list of what it could possibly be.
For the various air levers, while percent seemed to work for the levers, it did not for the valves they control. Do you, from a programming standpoint, have any inkling as to what might have been happening under the hood when the input was... typecast(?) as a percent instead of a number?
This is purely me asking for a glimpse of how it works under the hood.