Command Line Reference

Discussions surrounding the software that lets pilots connect to PilotEdge and the actual simulators
Post Reply
maxaero
Posts: 4
Joined: Mon Dec 22, 2014 10:27 am

Command Line Reference

Post by maxaero »

Is there a command line reference for the PEClient?

I'm interesting in building a launcher that launches FSX/P3D using a .FLT/FXML file and also launches the PEClient and have it connect automatically.

Thanks for any assistance.

Dustin
Keith Smith
Posts: 9939
Joined: Sat Oct 09, 2010 8:38 pm
Location: Pompton Plains, NJ
Contact:

Re: Command Line Reference

Post by Keith Smith »

There isn't a command line API. However, you can fire a simconnect event called "REDBIRD.PE_CONNECT" and that will cause it to connect using the last set of good credentials.
maxaero
Posts: 4
Joined: Mon Dec 22, 2014 10:27 am

Re: Command Line Reference

Post by maxaero »

That will work.

Is there a disconnect event as well?

Any other events or properties?

Thanks!

Dustin
Keith Smith
Posts: 9939
Joined: Sat Oct 09, 2010 8:38 pm
Location: Pompton Plains, NJ
Contact:

Re: Command Line Reference

Post by Keith Smith »

There isn't a disconnect event for FSX/P3D yet, (we haven't had a need for it). There is a PILOTEDGE.PTT_ON and PILOTEDGE.PTT_OFF you can trigger, though.
maxaero
Posts: 4
Joined: Mon Dec 22, 2014 10:27 am

Re: Command Line Reference

Post by maxaero »

Thanks Keith,

I tried using these three events this evening.

PILOTEDGE.PTT_ON worked, but it left the transmit button stuck on. Trying to clear this with the keyboard or yoke PTT did not work.
PILOTEDGE.PTT_OFF did not work. This was attempted just after using the PTT_ON event.
REDBIRD.PE_CONNECT did not work. FSX and PE Client were running.

I'm using the managed version of the SimConnect client in the FSX SP2 SDK.

Here's the code I'm using - any suggestions?

Code: Select all

          try
            {

                simconnect.MapClientEventToSimEvent(REDBIRD.PE_CONNECT, "REDBIRD.PE_CONNECT");
                simconnect.AddClientEventToNotificationGroup(NOTIFICATION_GROUPS.GROUP0, REDBIRD.PE_CONNECT, false);
                simconnect.TransmitClientEvent(SimConnect.SIMCONNECT_OBJECT_ID_USER, REDBIRD.PE_CONNECT, 0, NOTIFICATION_GROUPS.GROUP0, SIMCONNECT_EVENT_FLAG.DEFAULT);

            }

            catch (COMException ex)
            {
                MessageBox.Show(ex.Message);
            }
Keith Smith
Posts: 9939
Joined: Sat Oct 09, 2010 8:38 pm
Location: Pompton Plains, NJ
Contact:

Re: Command Line Reference

Post by Keith Smith »

my mistake, the ptt off should be PILOTEDGE.PTT_RELEASE
maxaero
Posts: 4
Joined: Mon Dec 22, 2014 10:27 am

Re: Command Line Reference

Post by maxaero »

PILOTEDGE.PTT_RELEASE worked - thanks!

Alright - so, I'm still looking for a way to programmatically get the PE client to connect. Does the REDBIRD.PE_CONNECT event need some Redbird software installed to register the event?

Dustin
Post Reply