summaryrefslogtreecommitdiffhomepage
path: root/clientfiles/FlightGear
diff options
context:
space:
mode:
Diffstat (limited to 'clientfiles/FlightGear')
-rw-r--r--clientfiles/FlightGear/Protocol/headtracker.xml54
-rw-r--r--clientfiles/FlightGear/readme.txt8
2 files changed, 62 insertions, 0 deletions
diff --git a/clientfiles/FlightGear/Protocol/headtracker.xml b/clientfiles/FlightGear/Protocol/headtracker.xml
new file mode 100644
index 00000000..8c14119a
--- /dev/null
+++ b/clientfiles/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/clientfiles/FlightGear/readme.txt b/clientfiles/FlightGear/readme.txt
new file mode 100644
index 00000000..48cee837
--- /dev/null
+++ b/clientfiles/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