Board index FlightGear Support Hardware

TrackIR, EDTracker, vJoy, FreePIE, OpenTrack - headtracking

Joysticks, pedals, monitors.

Re: TrackIR, EDTracker, vJoy, FreePIE, OpenTrack - headtrack

Postby Hooray » Thu Mar 26, 2020 1:06 pm

that's exactly the sort of thing that would make a great addition to the newsletter.
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Re: TrackIR, EDTracker, vJoy, FreePIE, OpenTrack - headtrack

Postby xcvb » Mon Mar 30, 2020 4:33 pm

I don't really understand how Opentrack should be connected to FlightGear. Anyway, with this protocol "opentrack.xml" in "$FGDATA/Protocol" it works for me:

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
   <comment>
<![CDATA[
  Usage:

  fgfs --generic=socket,in,52,,5542,udp,opentrack
]]>
   </comment>
   <generic>
      <input>
         <binary_mode>true</binary_mode>
         <byte_order>host</byte_order>
         <chunk>
            <type>double</type>
            <node>/sim/current-view/tx</node>
         </chunk>
         <chunk>
            <type>double</type>
            <node>/sim/current-view/ty</node>
         </chunk>
         <chunk>
            <type>double</type>
            <node>/sim/current-view/tz</node>
         </chunk>
         <chunk>
            <type>double</type>
            <node>/sim/current-view/heading-offset-deg</node>
         </chunk>
         <chunk>
            <type>double</type>
            <node>/sim/current-view/roll</node>
         </chunk>
         <chunk>
            <type>double</type>
            <node>/sim/current-view/pitch-offset-deg</node>
         </chunk>
         <chunk>
            <type>int</type>
            <node>/sim/current-view/status</node>
         </chunk>
      </input>
   </generic>
</PropertyList>

With a Google Cardboard, FreePie App, Opentrack and Steamlink I get something like VR.
xcvb
 
Posts: 132
Joined: Sat Mar 14, 2015 3:08 pm
Version: Next
OS: Fedora Kinoite

Re: TrackIR, EDTracker, vJoy, FreePIE, OpenTrack - headtrack

Postby Robertfm » Mon Mar 30, 2020 4:46 pm

I used open track with Edtracker and aside from programming Edtracker to it. It then just worked with FG. No settings were necessary. In fact I discovered that Edtracker just worked with FG without opentrack in the end.
Robertfm
 
Posts: 1721
Joined: Thu Apr 25, 2019 5:56 pm
Callsign: RFM1
Version: 2020.3.11
OS: W10 v 19041.746

Re: TrackIR, EDTracker, vJoy, FreePIE, OpenTrack - headtrack

Postby xcvb » Thu Apr 02, 2020 8:06 pm

With this protocol:

Code: Select all
<?xml version="1.0"?>

<PropertyList>
<comment>
<![CDATA[
  Usage:

  fgfs --generic=socket,in,50,,5555,udp,freepie
]]>
</comment>
 <generic>
    <input>
      <binary_mode>true</binary_mode>
      <byte_order>host</byte_order>

      <chunk>
        <type>byte</type>
        <node>sim/current-view/freepie/value_pad1</node>
      </chunk>

      <chunk>
        <type>byte</type>
        <node>sim/current-view/freepie/value_flags</node>
      </chunk>

      <chunk>
        <type>float</type>
        <node>sim/current-view/freepie/acc1</node>
      </chunk>
 
      <chunk>
        <type>float</type>
        <node>sim/current-view/freepie/acc2</node>
      </chunk>

      <chunk>
        <type>float</type>
        <node>sim/current-view/freepie/acc3</node>
      </chunk>

      <chunk>
        <type>float</type>
        <node>sim/current-view/freepie/value_04</node>
      </chunk>

      <chunk>
        <type>float</type>
        <node>sim/current-view/freepie/value_05</node>
      </chunk>

      <chunk>
        <type>float</type>
        <node>sim/current-view/freepie/value_06</node>
      </chunk>

      <chunk>
        <type>float</type>
        <node>sim/current-view/freepie/value_07</node>
      </chunk>
 
      <chunk>
        <type>float</type>
        <node>sim/current-view/freepie/value_08</node>
      </chunk>

      <chunk>
        <type>float</type>
        <node>sim/current-view/freepie/value_09</node>
      </chunk>

      <chunk>
        <type>float</type>
        <node>sim/current-view/freepie/value_10</node>
      </chunk>

      <chunk>
        <type>float</type>
        <node>sim/current-view/freepie/value_11</node>
      </chunk>

      <chunk>
        <type>float</type>
        <node>sim/current-view/freepie/value_12</node>
      </chunk>
   </input>
 </generic>
 </PropertyList>

and this script:

Code: Select all
var pitch = nil;
var x = nil;
var y = nil;
var timer = nil;
lowpass = aircraft.lowpass.new(0.1);

var trigger = func {
   pitch.setDoubleValue(lowpass.filter((math.atan2(x.getValue() or 0, y.getValue() or 0) * R2D) - 90));
}

var init = func {
   if(!getprop("sim/signals/fdm-initialized")) return;
   if(getprop("sim/current-view/freepie/enabled") != 1) return;

   print("init freepie");
   pitch = props.globals.getNode("sim/current-view/pitch-offset-deg", 1);
   x = props.globals.getNode("sim/current-view/freepie/acc1", 1);
   y = props.globals.getNode("sim/current-view/freepie/acc3", 1);
   timer.start();
};

timer = maketimer(0, trigger);
_setlistener("/sim/signals/fdm-initialized", init, 1, 0);

you don't even need opentrack. Just the FreePie App and FlightGear. Too bad my smartphone has no gyros, so I only implemented pitch.
xcvb
 
Posts: 132
Joined: Sat Mar 14, 2015 3:08 pm
Version: Next
OS: Fedora Kinoite

Re: TrackIR, EDTracker, vJoy, FreePIE, OpenTrack - headtrack

Postby oly2b » Tue Aug 04, 2020 2:37 pm

Problem I have is I am unable to get fgcamera to work with my 2020.1.3 installation therefore I can't use my TrackIR5.
Got TrackIR5 working on my 2018.3.5 installation which I installed as a check when fgcamera would not appear.
I followed the vjoy, Freepie, Linuxir route and I cannot spot any difference in the two installations.
Any guidance would be helpful please.
oly2b
 
Posts: 57
Joined: Mon Jun 29, 2020 7:55 am
Location: UK
Callsign: G-OLYB
Version: 2020.1
OS: Windows

Re: TrackIR, EDTracker, vJoy, FreePIE, OpenTrack - headtrack

Postby Cole » Sat Nov 28, 2020 12:47 pm

I would also like a solution, I have trackir5 hardware also.
Cole
 
Posts: 21
Joined: Thu Jun 11, 2020 12:46 pm

Re: TrackIR, EDTracker, vJoy, FreePIE, OpenTrack - headtrack

Postby Johan G » Sun Nov 29, 2020 12:09 pm

I am not sure if TrackIR5 plays well with open source software. The software seem to require the "game" to be modified using a closed source SDK, rather than using some kind of defined protocol to transfer the parameters.

There are some alternatives, that unfortunately very likely do not work with the TrackIR camera, for above reasons.

I have been using opentrack with an ArUco marker and a web cam for a couple of months and is quite pleased with that (except for that the marker have to be well lit). It can be used with 3 LEDs (possibly needing web cam modification) and some other ways as well.
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Some YouTube videos
Johan G
Moderator
 
Posts: 6629
Joined: Fri Aug 06, 2010 6:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 2020.3.4
OS: Windows 10, 64 bit

Re: TrackIR, EDTracker, vJoy, FreePIE, OpenTrack - headtrack

Postby vanosten » Sun Nov 29, 2020 12:23 pm

oly2b wrote in Tue Aug 04, 2020 2:37 pm:Problem I have is I am unable to get fgcamera to work with my 2020.1.3 installation therefore I can't use my TrackIR5.


I cannot help with fgcamera. But the solutions pointed out on page 1 of this thread (TrackIR, vJoy, FreePie) still work fine for me on 2020.3.x.
Maintaining osm2city. Contributing with ground attack stuff to the OPRF FlightGear military-simulation community.
vanosten
 
Posts: 540
Joined: Sat Sep 25, 2010 6:38 pm
Location: Denmark - but I am Swiss
Pronouns: he/his
Callsign: HB-VANO
Version: latest
OS: Win 10 and Ubuntu

Previous

Return to Hardware

Who is online

Users browsing this forum: No registered users and 6 guests