mxa / GemVR

Pure Data/Gem patches to prototype for a VR headset
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

implement rotation matrix #1

Open mxa opened 7 years ago

mxa commented 7 years ago

As per https://stackoverflow.com/questions/27106607/get-rotation-and-display-in-degrees I need to implement a rotation matrix, because the axis of rotation change when the phone is rotated. Possibly using iemmatrix . See also https://github.com/SensorApps/Sensors2OSC/issues/15

mxa commented 7 years ago

For didactic purposes it would be interesting to implement the MARG algorithm in Pd, even though it ideally should be run on the phone in higher frequency and then down-sampled for OSC transmission. It can be found at http://x-io.co.uk/res/doc/madgwick_internal_report.pdf and https://github.com/xioTechnologies/Open-Source-AHRS-With-x-IMU