In my app I need to measure a camera data if the glasses are moving or not. I get the data with:
quaternions["x"] = Camera.main.transform.rotation.x;
quaternions["y"] = Camera.main.transform.rotation.y;
quaternions["z"] = Camera.main.transform.rotation.z;
quaternions["w"] = Camera.main.transform.rotation.w;
quaternions["tx"] = Camera.main.transform.position.x;
quaternions["ty"] = Camera.main.transform.position.y;
quaternions["tz"] = Camera.main.transform.position.z;
If I move the glasses, the app works fine. But if I leave the glasses on the table, then after 4 minutes the glasses disable display and the code returns last stored data. Even if the charge cable is plugged in. If I press enable button on the glasses, the display is on again and the data is also right.
Is there some possibility to prevent the glasses falling asleep?
The new HoloLens has a Qualcomm Snapdragon 850 Compute Platform while the original HoloLens has an Intel Atom x5-Z8100p @ 1.04Ghz. Upgrading to an AMR based system means more processing power for the user's work. The CPU upgrade is most apparent when looking at the logical cores.
Microsoft HoloLens 2 is a pair of mixed reality smartglasses developed and manufactured by Microsoft.
HoloLens Emulator system requirements Windows 10 Home Edition does not support Hyper-V or the HoloLens Emulator. The HoloLens 2 Emulator requires the Windows 10 October 2018 update or later.
HoloLens2 is developed and manufactured by joint forces; Microsoft and MicroVision Inc, both companies are based in the Unites States (US), so the country of origin would be the US.
According to comment of @Kay, the solution is adding the line:
Screen.sleepTimeout = SleepTimeout.NeverSleep;
NOTE: this solution works if you use MixedRealityToolkit-Unity because it needs:
using UnityEngine;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With