Create camera with sensors

Hello.
I’m trying to create augmented reality app with unity 3d under microsoft surface.

I would like to use gyrometer, orientation sensor, etc… to contol rotation of unity camera.

I can’t use unity’s gyroscope functions because it doesn’t works with my tablett. So i create a dll to access sensors.

It works but my script which control camera doesn’t works.
This script works fine on ios, but under windows, rotations are inverted and sensibility is too much.

What are differences between gyrosocpe.attitude in unity and other microsoft’s functions ?
I’m trying with orientation sensor, inclinometer and gyroscope. (see here Choosing the right sensors to use (HTML) - Windows app development | Microsoft Learn)

I don’t know how to get the right data like gyrosocpe.attitude ?

Thank you

They don’t return any readings? At least accelerometer should work.

This bug will be fixed in 4.5. The problem is, that sensor compensation does not work on WSA (in 4.3 and earlier), so it always return raw readings, which might be different on different platforms.

No, the accelerometer doesn’t work using unity’s input. Do I need doing special things to activate on windows tablett ?

That’s strange, I think it should work in 4.3, only without sensor compensation. Anyway, 4.5 will be released soon, so it would be best for you to upgrade to it.

Ok,
What does mean “soon” ? Because this make me lost a lot of time ?
Thanks

We’re in Release Candidate stage now, only doing bug fixes.

I have developed an AR Camera Lite for Unity using an accelerometer or gyro.
Researchers say that it works on 90% of devices.