zuby Posted July 29, 2018 Report Posted July 29, 2018 Hello Paul, I'm using below code to on/off flight director switch in PMDG Aircraft. it's working in reverse order when i send parameter 1 it turns off to FD and 0 turns on, is it normal? or im using it wrong way? FSUIPCConnection.SendControlToFS(PMDGEvent.EVT_MCP_FD_SWITCH_L, 1);
Thomas Richter Posted July 29, 2018 Report Posted July 29, 2018 Hi, best is to check the PMDG SDK '.h' file for the used parameter.. Thomas
zuby Posted July 29, 2018 Author Report Posted July 29, 2018 Thanks Thomas Richter for your response. I read PMDG SDK ".h" file but did not find any numeric parameter that sets position of a switch, could you guide me further?
Thomas Richter Posted July 29, 2018 Report Posted July 29, 2018 Hi, as the ...SDK.pdf document in the same folder shows examples how to use with SimConnect, you will find the information that switch positions when not defined as bool or with multiple values then the position can be set by using 0 or 1. In case of the FD switches I would expect they are by default in ON position and on a first run without setting them a value 0 will set it to ON position. An switch position state file might be created after the first run. That just means a value of 0 is ON position and a 1 value is OFF position, just reversed. FSUIPC just uses the controls and, if used/set, a parameter. In case it is working I wouldn't worry. (It works as well reversed in FSX PMDG, just checked here) Thomas
zuby Posted July 30, 2018 Author Report Posted July 30, 2018 I got it. Thank you very much Thomas Richter for your help and time
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now