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
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.