Igalia / wolvic

A fast and secure browser for standalone virtual-reality and augmented-reality headsets.
https://wolvic.org
Mozilla Public License 2.0
813 stars 105 forks source link

[VisionGlass] Restart phone IMU when calibrating #1367

Closed svillar closed 6 months ago

svillar commented 7 months ago

Restarting the IMU listener on calibration provides much better results. This is specially important with extreme calibrations (like the glasses and phone IMUs being rotated 90 degs).

The following is a good test case:

  1. put the phone over a surface with a 90º rotation relative to the glasses, i.e. pointing towards your right or left
  2. start wolvic
  3. observe that the ray is pointing to the front despite the phone position
  4. take the phone and point it to the wolvic window and then click on calibrate

Without this patch the behaviour of the pointer after calibration is pretty bad. With this patch it works normally