How to know the orientation of the accelerometer in relation to camera Transform?

Léa Prémont 0 Reputation points
2023-03-16T13:56:05.1066667+00:00

I am using HoloLens 2 with Unity 2019.4. I have access to research mode thanks to this repo .

I can get the raw data from the accelerometer, but I don't know in which frame they are expressed. If I assume it is in the camera (headset) frame, then it does not fit (I calibrate with gravity but when I subtract gravity I still have a constant acceleration for static positions). The accelerometer does not seem to be aligned with the camera axis.

How do I get to know the orientation of the accelerometer in relation to the headset (or world)?

Thanks.

HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
380 questions
{count} votes

1 answer

Sort by: Most helpful
  1. GameWame 0 Reputation points
    2024-02-28T16:08:44.3+00:00

    Hi, I'm working on a similar problem with hololens 2, but how did you get the raw data from the accelerometer? (I need the height reached when the user jumps)

    0 comments No comments