Alex Posted November 29, 2010 Report Share Posted November 29, 2010 Caling all ACARS afficianadoes!! The flight simulator i use is FlightGear, an open source flight sim sharing many similarities and processes with Xplane. I'm trying to create an ACARS system similar to the KACARS or XACARS. Within Flightgear i can specify the sim to output to a telnet socket. as shown here. I create a protocol file to output the information i want to collect from the program a snippet is here. (iits an xml file) <?xml version="1.0"?> <PropertyList> <generic> <output> <binary_mode>false</binary_mode> <var_separator> </var_separator> <line_separator>\n</line_separator> <preamble>register FlightGear</preamble> <chunk> <type>string</type> <format>put</format> </chunk> <chunk> <name>lat</name> <type>float</type> <node>/position/latitude-deg</node> <format>lat %f</format> </chunk> <chunk> <name>lon</name> <type>float</type> <node>/position/longitude-deg</node> <format>lon %f</format> </chunk> <chunk> <name>alt</name> <type>int</type> <node>/position/altitude-ft</node> <format>alt %d</format> </chunk> <chunk> <name>ground speed</name> <type>int</type> <node>/velocities/groundspeed-kt</node> <format>gnd %d</format> </chunk> <chunk> <name>heading</name> <type>int</type> <node>/orientation/heading-deg</node> <format>hdg %d</format> <factor>10</factor> </chunk> I was hoping someone with better knowledge than i with PHP and creating an ACARS system would be able to assist? It would be a great benefit to me if possible. Cheers Alex Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 29, 2010 Administrators Report Share Posted November 29, 2010 You can read from a socket, I'd google search it, but not sure if this is the best way? Quote Link to comment Share on other sites More sharing options...
Alex Posted November 29, 2010 Author Report Share Posted November 29, 2010 you say that your not sure this would be the best way? but is there an alternative? Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted December 3, 2010 Administrators Report Share Posted December 3, 2010 you say that your not sure this would be the best way? but is there an alternative? Write to an XML file which is then uploaded via POST. Otherwise, your clients and server need access to the same socket Quote Link to comment Share on other sites More sharing options...
Alex Posted December 4, 2010 Author Report Share Posted December 4, 2010 Write to an XML file which is then uploaded via POST. Otherwise, your clients and server need access to the same socket how would i go about doing that? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.