OSDN Git Service

Bug fix for SensorFusion data rate.
authorAravind Akella <aakella@google.com>
Fri, 6 Dec 2013 00:24:59 +0000 (16:24 -0800)
committerAravind Akella <aakella@google.com>
Thu, 6 Mar 2014 19:07:18 +0000 (19:07 +0000)
commit19d648195673b106152610e3787c95886946460f
tree4c4d6b06cddc5a830a4495ac6a95b6f7a8b668f6
parent4b84704b97300eff3ebfab85652e64d54149d205
Bug fix for SensorFusion data rate.

SensorFusion is always returning data at the slowest possible sampling rate (5 Hz). batch() is getting called twice, first time with the requested rate and second time with the slowest rate (which overwrites the requested rate). Fix batch call in SensorFusion::activate()

Bug: 12064319
Change-Id: If62f3e514233f69810336fd22b136b4395b667d3
(cherry picked from commit 88509090387eeb400771a786171866710cca230c)
services/sensorservice/SensorFusion.cpp
services/sensorservice/SensorFusion.h