Hello all,
It's been a long time since I last posted in this forum, but I've been lurking around and soaking knowledge like a sponge.
I'm designing a study level aircraft with TPE-331 engines (single shaft turboprop) and I've found through trial and error how I need to set my power and RPM levers in order to get the correct reactions from the engine so it resembles real life (start locks, low idle, high idle, beta, etc...).
The only problem with this is that I need to trap the axis that control Power (throttle) and RPM for each engine (or all engines if such is the mapping) and send each of these values to an LVar.
These Lvars will be evaluated through a convoluted set of conditions that will then apply the correct power lever and RPM lever positions to the sim AVars through PID loops. After that, the Lvars will only be used for the display of the levers in the cockpit.
I know XML Keys can do this (I still need to understand exactly how).
All the examples of code I've seen in here trap a given joystick axis without knowing what the mapping of said axis is.
I know my control settings, but I'd like to distribute this airplane to some other people and I don't know which axis is mapped to which value in their setup.
So my question is:
Is there a way for XMLKeys to know what each joystick axis is mapped to?
Or, is there a way to know what joystick axis is controlling the general throttle or engine 1 throttle / engine rpm, etc?
If I can determine which axis controls my Power and RPM for each engine (or both) then I think I can easily do the rest.
I'm trying to stay away from Simconnect gauges as I'm unfamiliar with C++ and I'm trying to get this project over asap, so learning C++ right now is not really an option (I'll get to it, I promise).
Thanks for the help.
It's been a long time since I last posted in this forum, but I've been lurking around and soaking knowledge like a sponge.
I'm designing a study level aircraft with TPE-331 engines (single shaft turboprop) and I've found through trial and error how I need to set my power and RPM levers in order to get the correct reactions from the engine so it resembles real life (start locks, low idle, high idle, beta, etc...).
The only problem with this is that I need to trap the axis that control Power (throttle) and RPM for each engine (or all engines if such is the mapping) and send each of these values to an LVar.
These Lvars will be evaluated through a convoluted set of conditions that will then apply the correct power lever and RPM lever positions to the sim AVars through PID loops. After that, the Lvars will only be used for the display of the levers in the cockpit.
I know XML Keys can do this (I still need to understand exactly how).
All the examples of code I've seen in here trap a given joystick axis without knowing what the mapping of said axis is.
I know my control settings, but I'd like to distribute this airplane to some other people and I don't know which axis is mapped to which value in their setup.
So my question is:
Is there a way for XMLKeys to know what each joystick axis is mapped to?
Or, is there a way to know what joystick axis is controlling the general throttle or engine 1 throttle / engine rpm, etc?
If I can determine which axis controls my Power and RPM for each engine (or both) then I think I can easily do the rest.
I'm trying to stay away from Simconnect gauges as I'm unfamiliar with C++ and I'm trying to get this project over asap, so learning C++ right now is not really an option (I'll get to it, I promise).
Thanks for the help.