yabo国际娱乐对话半导体客户支持-同步 https://support.dialog-semiconductor.com/resource-keywords/synchronization 使用evevothing框架时加速度计和陀螺仪的同步问题 https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/synchronization-problem-accelerometer < div class = "字段field-name-taxonomy-forums field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >论坛:,< / div > < div class = "字段条目" > < div class =”field-item甚至“rel = " sioc: has_container " > < a href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件”“=“sioc:容器sioc:论坛”

我使用华为智能手机作为Central和DA14583物联网传感器外设。运行在智能手机上的软件是一个使用Evothing框架的应用程序。我想同时读取加速度和角速度来做运动捕捉。
传感器的固件:物联网原始项目。
加速度计和陀螺仪的采样率:50Hz。中央设备上< br / >代码使用Evothing如下:< br / > / /接收的数据< br / > app.handleSensorAccelerometer = function(数据){< br / >数据(“时间”)= Date.now (); < br / >数据(“类型”)=“加速器”;< br / > app.data.Accelerometer.push(数据),< br / > . getelementbyid(“sensor-accelerometer-count”)。
data["time"] = Date.now();
data["type"] = "Gyroscope";
app.data.Gyroscope.push(data);
}

问题:加速度计和陀螺仪不能同步。陀螺仪的数据通常小于加速度计的数据。
问题:到目前为止,我发现Evothing只提供两个回调接口函数,app.handleSensorAccelerometer()和handleSensorGyroscope()。我目前用于同步的方法是将来自加速度计和陀螺仪的数据分别发布到两个阵列。 As a result, the data are not strictly synchronized, just by random. Usually, the gyroscope's data is less than acclerometer 's data when sampling a period. My question is that how can I synchronize two sensors or eliminate my former errors?

Best Regards,
Elvis

Device: 
2017年7月26日星期三04:19:16 +0000 Elvis1991 72179年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/synchronization-problem-accelerometer#comments