OSDN Git Service
(root)
/
android-x86
/
hardware-intel-libsensors.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Experimental accelerometer calibration routine
[android-x86/hardware-intel-libsensors.git]
/
transform.c
diff --git
a/transform.c
b/transform.c
index
74d5ef1
..
25094f6
100644
(file)
--- a/
transform.c
+++ b/
transform.c
@@
-299,6
+299,8
@@
static int finalize_sample_default (int s, sensors_event_t* data)
case SENSOR_TYPE_ACCELEROMETER:
/* Always consider the accelerometer accurate */
data->acceleration.status = SENSOR_STATUS_ACCURACY_HIGH;
+ if (sensor[s].quirks & QUIRK_BIASED)
+ calibrate_accel(s, data);
denoise(s, data);
break;