Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

User:Www2/Advanced Protocol

From FlightGear wiki
Jump to: navigation, search

proposal

The advanced communication protocall for FlightGear provides a more powerful way than generic communication protocol of adding ASCII base or binary input/output ptorocall for socket, websockets, Sireal or USB communication, just by defining an XML encoded configuration file and placing it in the $FG_ROOT/Protocol/Advaneds or $FG_AIRCRAFT/Protocol directory.

file layout

  <?xml version="1.0"?>
  <PropertyList>
    <advancedProtocol>
      <setup>
        <type></type>
        <endian></endian>
	<line_separator></line_separator>
	<var_separator></var_separator>
      </setup>

      <statemachine>
        <state>
	        ... first state spec ...
	</state>
	
	<state>
	        ... another state etc. ...
	</state>
      </statemachine>
      
      <periodic>
        <block>
                ... First block spec. ...
        </block>
        <block>
                ... another block etc. ...
        </block>
      </periodic>
    
    </advancedProtocol>
  </PropertyList>