Skip to content
This repository was archived by the owner on Dec 3, 2021. It is now read-only.

Commit a32c4e1

Browse files
committed
Corrected sensor remap to get proper head tilt values
1 parent 1384722 commit a32c4e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PTVGlass/HeadListView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public void OnSensorChanged(SensorEvent e)
8282
return;
8383

8484
SensorManager.GetRotationMatrixFromVector(mat, e.Values.ToArray());
85-
SensorManager.RemapCoordinateSystem(mat, Android.Hardware.Axis.X, Android.Hardware.Axis.Y, mat);
85+
SensorManager.RemapCoordinateSystem(mat, Android.Hardware.Axis.X, Android.Hardware.Axis.Z, mat);
8686
SensorManager.GetOrientation(mat, orientation);
8787

8888
float z = orientation[0], // see https://developers.google.com/glass/develop/gdk/location-sensors/index

0 commit comments

Comments
 (0)