Puck.js gyro/accel and mag orientation.

Posted on
  • Hi everyone. I just wanted to check if there is a diagram showing the axis alignment for the gyro/accel and magnetometer. The documentation seems to give an answer for the magnetometer, but isn't specific as to the positive and negative directionality, and I can't find it for the gyro and accelerometer.

    The reason that I ask is because, I seem to have to do some odd flipping when using this library:

    https://github.com/psiphi75/ahrs

    In order to not have the mag readings fight with the faster accelerometer and gyro readings.

  • I'm afraid there isn't any diagram available at the moment, but it's usually pretty easy to see by dumping the output as you turn the Bangle.

    For accel/gyro:

    • X -> towards aerial
    • Y -> towards IR leds
    • Z -> into the PCB towards the battery

    For magnetometer it's flipped which is a bit confusing:

    • X -> towards IR leds
    • Y -> towards aerial
    • Z -> into the PCB towards the battery
  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Puck.js gyro/accel and mag orientation.

Posted by Avatar for adasim @adasim

Actions