thp / psmoveapi

Cross-platform library for 6DoF tracking of the PS Move Motion Controller. Sensor fusion, computer vision, ambient display (LED orb).

Home Page:https://thp.io/2010/psmove/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible Yaw Drift

a-eye-tech opened this issue · comments

I think I might be experiencing yaw drift. Here's a video I made with a 3D arrow using OpenGL. The green triangle is in the Y-Z plane, and the red rectangle is in the X-Z plane: https://youtu.be/fZwU3tOpcNo

Whatever the problem is, how can I fix it? Does the psmoveapi have a function that can help me fix this issue?

@a-eye-tech does your controller is calibrated? Does your notebook has speakers?

Have you tried another surface?

@yuripourre I'm not sure if it's calibrated by the psmoveapi. I used my own code to have it oriented properly with respect to the monitor, which works for the first few seconds before it starts to drift.

My notebook does have speakers. I still get the same drift even when I move 6ft away from my notebook speakers.

I tried it on my desktop computer as well, and it has the same drift problem.

@a-eye-tech one simple test is to point your controller into all directions 360°. If you search for "How to calibrate a gyro" in Google you might find something useful.

If the problem persists is can be related to the code.

Ok, I fixed my problem. Here's what I did:

  • Found the location of psmove.exe.
  • Open Command Prompt in that directory, which for me was <...>psmoveapi\out\build\x64-Debug (default)
  • On Command Prompt, run 'psmove.exe calibrate'
  • Follow the instructions to have the magnetometer calibrated.

@a-eye-tech glad that you solved it!