node-psvr
node-psvr copied to clipboard
Combining Acc/Gyro Data - Needs Kalman
I don't believe that you can legitimately combine data like this: https://github.com/hrl7/node-psvr/blob/master/lib/psvr.js#L98
You need to use some form of Kalman filter/AHRS code, there are a number of OpenSource ones that might be suitable. For example: https://github.com/richardstechnotes/RTIMULib2
Also note that without a Camera to correct position 'lock' the computed position will drift rapidly away. If you are just looking for rotational data you can null out the positional offset. You will still need to rely on having a minimal yaw drift through.... Simon