Emulating TrackIR

Official forum for open source FreePIE discussion and development.
Post Reply
Croccy22
Cross Eyed!
Posts: 140
Joined: Wed Feb 04, 2009 7:51 am

Emulating TrackIR

Post by Croccy22 »

Hi All,

Have just got a Sparkfun 9DOF which I am using with AHRS firmware.

I want to test it out using some PC games that support the TrackIR.

I have downloaded Codemaster Dirt 2 demo. I have also downloaded the TrackIR Fixer to remove the encryption.

I have started FreePIE and setup the AHRS plugin and am using the following script:

def update():
trackIR.yaw = ahrsImu.yaw
trackIR.pitch = ahrsImu.pitch
trackIR.roll = ahrsImu.roll

diagnostics.watch(ahrsImu.yaw)
diagnostics.watch(ahrsImu.pitch)
diagnostics.watch(ahrsImu.roll)

if starting:
ahrsImu.update += update

But when I start Dirt 2 and go into cockpit view the head tracking is not working? Do I need to install any additional software to get it to work? Not sure what else I need to do to get it to work.

Any help would be greatly appreciated.

Thanks, Matt.
User avatar
bobjwatts
Cross Eyed!
Posts: 125
Joined: Mon Oct 01, 2012 1:46 am
Location: Melbourne, Australia

Re: Emulating TrackIR

Post by bobjwatts »

I also tried this using my iPhone sensor data.

And as you have said, I get nothing in game.
CyberVillain
Petrif-Eyed
Posts: 2166
Joined: Mon Jun 22, 2009 8:36 am
Location: Stockholm, Sweden

Re: Emulating TrackIR

Post by CyberVillain »

Do you get data in the watch window?

Looks more people having trouble with it :/
http://www.free-track.net/forum/index.p ... topic=2145
CyberVillain
Petrif-Eyed
Posts: 2166
Joined: Mon Jun 22, 2009 8:36 am
Location: Stockholm, Sweden

Re: Emulating TrackIR

Post by CyberVillain »

Good news, FreePIE do work with Dirt 2 demo

Start FreePIE and run your script
Put TrackIRFixer.exe in the dirt2 folder and start it, check that it finds Dirt exe and that it waits for you to start it.
Start dirt2.exe
It only tracks from cockpit view

If it does not work check things like run as admin and such, I have full admin rights on my w7 machine with UAC turned off

TrackIrfixer should look like attached jpeg
You do not have the required permissions to view the files attached to this post.
Croccy22
Cross Eyed!
Posts: 140
Joined: Wed Feb 04, 2009 7:51 am

Re: Emulating TrackIR

Post by Croccy22 »

Hey,

I got it working in the end. Not sure what I did different this time though! :). At least it is working now.

Thanks, Matt.
Post Reply

Return to “FreePIE”