Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tobii Eye Tracker 5 and FreePie Pitch #200

Open
BlueSkyDefender opened this issue Jan 2, 2021 · 2 comments
Open

Tobii Eye Tracker 5 and FreePie Pitch #200

BlueSkyDefender opened this issue Jan 2, 2021 · 2 comments

Comments

@BlueSkyDefender
Copy link

So when looking up and finding out that pitch was not supported on Tobii Eye tracker c4
this comment is understandable.

// You can't calculate pitch using eye tracker at the moment.

But, now that the Tobii Eye Tracker v5 is out and is said to support pitch now.
https://help.tobii.com/hc/en-us/articles/213473765-Head-tracking-specifications

My question is can I just copy all the function "public float Roll { get; private set; }" and replace it with Pitch?

//in   public class TobiiEyeXPlugin : Plugin
private float targetPitch;

public float Pitch { get; private set; }
//in private void EyeDataStreamOnNext(object sender, EyePositionEventArgs eyePositionEventArgs)
//Pitch: Have no idea if this is correct since I don't have a information for this.
targetPitch = (float)Math.Atan2(-eyeOffsetMm.Z, sqrt(eyeOffsetMm.Y*eyeOffsetMm.Y + eyeOffsetMm.X*eyeOffsetMm.X));

Pitch = Lerp(Pitch, targetPitch, 0.6f);

//public class TobiiEyeXGlobal : UpdateblePluginGlobal<TobiiEyeXPlugin>
public float pitch { get { return plugin.Pitch; } }

If not who can I contact to help me get this added/fixed?

@AndersMalmgren
Copy link
Owner

I don't have access to a tobii eye tracker anymore so can't test. It if you update the sdk and add pitch like you describe it should work

@DrunkenTee
Copy link

Did this work for you? I got a Tobii 5 arriving here soon and I wanted to use it for the game Squad as well, which requires FreePIE to make use of Head Trackers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants