plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.


Please take a moment to read the platform’s guidelines before you get started!


question

SWS-AlexVletsas avatar image
SWS-AlexVletsas asked WxMarc answered

[QUESTION]Input Events: cannot capture mixture & conditioning lever axess

I've been trying to make a custom condition lever for a few days to no avail. The goal is to capture the user's mixture events and manipulate them to control the engine's fuel flow directly.

I've successfully captured every input event except for AXIS_MIXTURE_SET, AXIS_MIXTURE1/2/3/4_SET

These eventIDs seem to be completely ignored by the InputEvent interface. Is there a way to capture them?

aircraftgauges
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

1 Answer

·
WxMarc avatar image
WxMarc answered

I have been able to successfully capture AXIS MIXTURE1 SET and AXIS MIXTURE2 SET in WASM. Here is a link to the source code I used to implement a mixture controller in turbocharged piston engines:

https://github.com/WxMarc/TurboEngineMixtureController/blob/main/src/C414AW/FdGauge.h

The code captures mixture K events and manipulates the mixture setting based on hardware input and internal calculations.

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.