Porting measure-app to WinRT RRS feed

  • Question

  • hi,

    I ported my app "Measure Tools" from WP 8.0 to WinRT (WP 8.1, Windows).

    The WP 8.0 app uses the class "Microsoft.Devices.Sensors.Motion".
    The measurements returned from this class are quite reliable and using yaw, pitch and roll values (and some math) the app is able to measure the distance of an object (up to 20 meters) and it's heigt (up to 10 meters).

    Of course the result is not super-precise but at least the accuracy is ok to be useful.

    When porting the app to WinRT I found out that there no longer is a "Motion" class.
    Instead the yaw, pitch and roll values are now returned by a "Inclinometer" sensor.

    So I am using this 'Inclinometer' sensor now.

    BUT: The returned values are much more un-reliable.
    On a Lumia 1520 the values are much more inaccurate then the values returned by the "old" app that uses the motion sensor class. On a dell tablet device the values are nearly useless.

    I tested this with the "inclinometer" sample from MS and the results are the same - the values returned from the inclinometer class "jump around" and are near to useless.

    I also found out that it's possible to calibrate the device which seems to give at least a little better result BUT why does the inclinometer need calibration, using the same figure that is used to calibrate the sensor?
    I do not want to use the compass - I want to use the sensors that tell me the angle in which I am holding the device and I want to get this value as precise as possible.

    I there another way to get a reliable value from the sensor that returns the angle, in which the device is held?

    best regards,

    Thursday, October 2, 2014 6:32 PM

All replies

  • Use the sample from http://code.msdn.microsoft.com/windowsapps/Inclinometer-Sensor-Sample-0cd0bf84/ on your side. If you find it is not precise. I think you should report to Microsoft.
    Saturday, October 4, 2014 7:46 AM
  • This is exaclty the sample I tested and it shows very inaccurate data - tested on 2 different windows phones (Lumia 1520, Lumia 925) and a WinRT tablet.
    Saturday, October 4, 2014 9:28 AM