BrianPeek.com

A Compendium of Random Uselessness
in Search

How to build a quaternion from sensor output

Last post Wed, Jul 25 2007 5:28 AM by Anonymous. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • Wed, Jul 25 2007 5:28 AM

    How to build a quaternion from sensor output

    Hi *,
     
    i'm trying to use the wiimote for a virtual reality application at the university. For this i have to use a windows pc with bluetooth to work with the wiimote and send the tracker data to a linux pc that does all the 3D stuff. I'm doing this with a vrpn connection that uses quaternions to transmit orientation data.

    I know that i cant use the z axis accelerometer for orientation but i'd like to use the other axis to control some stuff.

    My problem is that i know how to translate the data from the wiimote (between -1 and 1) to angles (degrees) but i don't know how to handle this data. I found several tips on the inet to translate euler angles or an orientation matrix to a quaternion but i can't just act as if my degrees from the wiimote were euler angles, do i?

    So maybe someone has an idea how to translate my sensor data to a rotation matrix or even to a quaternion.

    It shouldn't be too diffucult but i'm a little confused.

     

    Greetings from Germany

    Nils 

     

     

Page 1 of 1 (1 items)
Copyright (C) 2008 Brian Peek
Powered by Community Server (Commercial Edition), by Telligent Systems