diff options
Diffstat (limited to 'contrib/FlightGear')
-rw-r--r-- | contrib/FlightGear/Protocol/headtracker.xml | 54 | ||||
-rw-r--r-- | contrib/FlightGear/readme.txt | 8 |
2 files changed, 62 insertions, 0 deletions
diff --git a/contrib/FlightGear/Protocol/headtracker.xml b/contrib/FlightGear/Protocol/headtracker.xml new file mode 100644 index 00000000..8c14119a --- /dev/null +++ b/contrib/FlightGear/Protocol/headtracker.xml @@ -0,0 +1,54 @@ +<?xml version="1.0"?> + +<PropertyList> + <generic> + <input> + <binary_mode>true</binary_mode> + <binary_footer>none</binary_footer> + <byte_order>host</byte_order> + <record_length>52</record_length> + + <chunk> + <name>x</name> + <type>double</type> + <node>/sim/current-view/x-offset-m</node> + </chunk> + + <chunk> + <name>y</name> + <type>double</type> + <node>/sim/current-view/y-offset-m</node> + </chunk> + + <chunk> + <name>z</name> + <type>double</type> + <node>/sim/current-view/z-offset-m</node> + </chunk> + + <chunk> + <name>heading</name> + <type>double</type> + <node>/sim/current-view/heading-offset-deg</node> + </chunk> + + <chunk> + <name>pitch</name> + <type>double</type> + <node>/sim/current-view/pitch-offset-deg</node> + </chunk> + + <chunk> + <name>roll</name> + <type>double</type> + <node>/sim/current-view/roll-offset-deg</node> + </chunk> + + <chunk> + <name>status</name> + <type>int</type> + <node>/sim/current-view/headtracker-debug-status</node> + </chunk> + </input> + </generic> +</PropertyList> diff --git a/contrib/FlightGear/readme.txt b/contrib/FlightGear/readme.txt new file mode 100644 index 00000000..48cee837 --- /dev/null +++ b/contrib/FlightGear/readme.txt @@ -0,0 +1,8 @@ +Copy Protocol/headtracker.xml to fgdata/Protocol/headtracker.xml + +$ fgfs --generic=socket,in,25,localhost,5542,udp,headtracker + +Adjust paths as necessary. + +cheers, +-sh 20131008 |