Sign in to follow this  
petesk82

G1000 Simconnect example

Recommended Posts

Hi All.

I am using emuTeqs G1000 hardware and Mindstars G1000  software and via SimConnect   I am sending to the software the various hardware button presses as events mapped to the G1000.ini. 

eg 

SimConnect_MapClientEventToSimEvent (hSimconnect, eventID,"#0x11001");  // one for each hardware button mapped to G1000.ini entries as doc'd

SimConnect_TransmitClientEvent( hSimconnect , 0 , eventID , 0 , SIMCONNECT_GROUPID_IS_PRIORITY_HIGHEST,   SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY); 

 

and everything works fine and the G1000 software responds to the button presses.

 

No problem there but what I would like to know is how to read back the state of radio LED's  if set up to be sent in the [output] section of the  G1000.ini file.

 

Basically I'm not sure what Simconnect functions I should be using when trying to access a 3rd party event streams.

 

Any ideas would be appreciated.

 

 

 

 

 

 

Share this post


Link to post
Help AVSIM continue to serve you!
Please donate today!

Stopped being lazy and re-read docs.

this'll do it 

   SimConnect_MapClientEventToSimEvent(hSimConnect ,  0x11301,"#0x11301");

   SimConnect_AddClientEventToNotificationGroup(hSimConnect, GROUP_B ,  0x11301, false); 

then 

monitor SIMCONNECT_RECV_ID_EVENT in dispatch procedure.

Share this post


Link to post

Yes, read that , but it doesn't give  any SimConnect coding examples which would help.

Share this post


Link to post

I'm not certain why you want us to provide samples of how to receive custom events with SimConnect when that is already well documented in the SimConnect SDK itself.

 

We do not provide code.

Share this post


Link to post

It just makes life a bit easier for your customers.

 

We don't expect you to write our software but a few helpful pointers would help smooth things.

Share this post


Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this