It is currently Thu Aug 22, 2019 5:04 pm



Reply to topic  [ 2 posts ] 
 TrackIR emulation issue. Help!!!!! 
Author Message
Cross Eyed!

Joined: Wed Feb 04, 2009 7:51 am
Posts: 140
Reply with quote
Ok,

So I wrote a small script for Freepie to use my Razor 9DOF with TrackIR games (Dirt 2)

Code:
def update():
   global yaw,roll,pitch,caly,calr,calp
   
   yaw = ahrsImu.yaw
   roll = ahrsImu.roll
   pitch = ahrsImu.pitch
   
   trackIR.yaw=yaw+caly
   trackIR.roll=roll+calr
   trackIR.pitch=pitch+calp

if starting:
   yaw=0
   roll=0
   pitch=0
   caly=0
   calr=0
   calp=0
   
   ahrsImu.update += update

diagnostics.watch(yaw+caly)
diagnostics.watch(roll+calr)
diagnostics.watch(pitch+calp)

if (keyboard.getPressed(Key.Z)):
   caly=0-yaw
   calr=0-roll
   calp=0-pitch


It worked fine and I was very happy. I then decided to show someone this brilliant program and guess what! Its completey screwed up. I run dirt with the encryption program and get into the game, then go to cockpit view. What I then see is the screen flicking really quickly between to views, one is the cockpit view with the headtracking working, the other is the cockpit view but straight ahead without headtracking. It almost seems like every over frame :S.

Has anyone got any idea at all what the hell is going on. I downloaded the actual TrackIR driver and ran their mouse emulation utility and that is doing the same thing, the input is flashing all over the place.

I really don't fancy a PC rebuild just to fix this problem but can't think what could be causing this?

Matt.


Sat Jun 01, 2013 3:13 pm
Profile
Petrif-Eyed

Joined: Mon Jun 22, 2009 8:36 am
Posts: 2160
Location: Stockholm, Sweden
Reply with quote
What happens if you run the game with neither TrackIR mouse emu or FreePIE?

_________________
FreePIE
My blog


Sun Jun 02, 2013 4:33 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by STSoftware.