This problem is bugging me for a while right now. I'm running flightgear 2016-1-3 on an imac (osx sierra) and have opentrack 2.3.0 RC6 installed. Made a nice cap with infrared leds, set it up with current settings:
input: point tracker 1.1
output: flightgear
filter : accela
Tested this config in opentrack and all works fine....
To interface with filghtgear i've follwed the instructions of the flightgear plugin:
added this file to fgdata/Protocol/
headtracker.xml
- Code: Select all
<?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>
And added this rule to the additional options in Filightgear
--generic=socket,in,25,127.0.0.1,5542,udp,headtracker
Now I can startup FG and headtracking seems to work. With the default cessna c172 I'm positioned right in the center of the plane (thus not on the pilot seat). I've tried to adjust the view position with the in-game menu but this doesn't seem to work. I've also tried to adjust the position ( z-offset-m) in the property browser and also no succes. I think the headtracker.xml is overriding the default offset position of the current plane (x-offset-m, y-offset-m and z-offset-m).
So, my question:
Is there some way to add the chosen plane's view offset of each angle (x-offset-m, y-offset-m and z-offset-m) to the headtraker.xml or is there a way to write a nasal script to do this? I'm not that familliar with nasal yet. Please help! Thanks, Ivo.