yabo国际娱乐对话半导体客户支持-数据融合 https://support.dialog-semiconductor.com/resource-keywords/data-fusion 使用everything框架时,加速度计和陀螺仪的同步问题 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:论坛”property="rdfs:label skos:prefLabel" datatype="">Dialog Smartbond Bluetooth Low Energy - Software

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

app.handleSensorGyroscope = function (data) {
data["time"] = Date.now();
}

问题:加速度计和陀螺仪不能同步。陀螺仪的数据通常小于加速度计的数据。问题:到目前为止,我发现一切只提供两个回调接口函数,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