Jump to content
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
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

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.


Ed Wilson

Mindstar Aviation
My Playland - I69

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  
  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...