TrackIR emulation issue. Help!!!!!

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

TrackIR emulation issue. Help!!!!!

Post by Croccy22 »

Ok,

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

Code: Select all

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.
CyberVillain
Petrif-Eyed
Posts: 2166
Joined: Mon Jun 22, 2009 8:36 am
Location: Stockholm, Sweden

Re: TrackIR emulation issue. Help!!!!!

Post by CyberVillain »

What happens if you run the game with neither TrackIR mouse emu or FreePIE?
Post Reply

Return to “FreePIE”