projects
/
platform
/
core
/
system
/
sensord.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef19a2b
)
sensord: gravity: set the value of accuracy in synthesize
86/65286/2
author
kibak.yoon
<kibak.yoon@samsung.com>
Thu, 7 Apr 2016 04:12:32 +0000
(13:12 +0900)
committer
Mu-Woong Lee
<muwoong.lee@samsung.com>
Fri, 8 Apr 2016 12:48:32 +0000
(
05:48
-0700)
* because the accuracy was omitted, it was added in synthesize_fusion.
Change-Id: I93e719274d818ac6bd8fc12ca15c7165ac564718
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/sensor/gravity/gravity_sensor.cpp
patch
|
blob
|
history
diff --git
a/src/sensor/gravity/gravity_sensor.cpp
b/src/sensor/gravity/gravity_sensor.cpp
index
e72f706
..
10bde5f
100644
(file)
--- a/
src/sensor/gravity/gravity_sensor.cpp
+++ b/
src/sensor/gravity/gravity_sensor.cpp
@@
-305,6
+305,7
@@
void gravity_sensor::fusion_set_accel(const sensor_event_t& event)
m_angle_n[1] = ARCTAN(x, z);
m_angle_n[2] = ARCTAN(y, x);
+ m_accuracy = event.data->accuracy;
m_time_new = event.data->timestamp;
_D("AccIn: (%f, %f, %f)", x/m_accel_mag, y/m_accel_mag, z/m_accel_mag);