projects
/
platform
/
core
/
api
/
sensor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
682153a
)
capi-sensor: remove brackets for coding convention checker
31/67131/1
author
kibak.yoon
<kibak.yoon@samsung.com>
Mon, 25 Apr 2016 08:56:26 +0000
(17:56 +0900)
committer
kibak.yoon
<kibak.yoon@samsung.com>
Mon, 25 Apr 2016 08:56:26 +0000
(17:56 +0900)
Change-Id: Id6c38f04d03d27372cf963f90bf464af03e6084b
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/fusion_util.c
patch
|
blob
|
history
diff --git
a/src/fusion_util.c
b/src/fusion_util.c
index
3a47828
..
b370cc8
100644
(file)
--- a/
src/fusion_util.c
+++ b/
src/fusion_util.c
@@
-130,9
+130,9
@@
int getRotationMatrix(float *accel, float *geo, float *R, float *I)
float Hy = Ez*Ax - Ex*Az;
float Hz = Ex*Ay - Ey*Ax;
float normH = (float)sqrt(Hx*Hx + Hy*Hy + Hz*Hz);
- if (normH < 0.1f)
{
+ if (normH < 0.1f)
return -1;
- }
+
float invH = 1.0f / normH;
Hx *= invH;
Hy *= invH;