简体   繁体   English

如何将通过 xamarin.essentials 在 Wear OS 和 Tizen 上记录的陀螺仪值转换为一个相互单位

[英]How do I convert gyroscope values recorded via xamarin.essentials on Wear OS and Tizen to a mutual unit

I have implemented a simple sensor collector app in Xamarin.Forms using Xamarin.Essentials for Wear OS and Tizen.我使用 Xamarin.Essentials for Wear OS 和 Tizen 在 Xamarin.Forms 中实现了一个简单的传感器收集器应用程序。 I am using a Samsung Galaxy Active 2 and a Fossil Sport for data collection.我正在使用 Samsung Galaxy Active 2 和 Fossil Sport 进行数据收集。

One thing I stumbled upon was that accelerometer and gyroscope data are recorded in different units accross both platforms.我偶然发现的一件事是加速度计和陀螺仪数据在两个平台上以不同的单位记录。 For the accelerometer Wear OS is recording in the unit G, Tizen in meters per seconds square, so a conversion to a mutual unit is relatively simple.对于加速度计来说,Wear OS 以 G、Tizen 为单位进行记录,单位为米/秒平方,因此转换为相互单位相对简单。 However I could not figure out what units are used for the gyroscope on both devices.但是,我无法弄清楚这两种设备上的陀螺仪都使用了哪些单位。 Is there someone who could share some insight?有人可以分享一些见解吗?

Thanks in advance and kind regards Alexander提前致谢并亲切问候亚历山大

After consulting the emulators for Tizen and Android the solution became apparent.在咨询了 Tizen 和 Android 的模拟器后,解决方案变得显而易见。 Tizen is using the unit degrees/s while Wear OS is using rad/s. Tizen 使用度/秒单位,而 Wear OS 使用 rad/s。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM