Initial empty repository
Invensense sensor code, moved to the open-source side

Change-Id: I616c13fdbc2235e400660f6f7a97f879b30879fc
handle yas530 offsets and stored cal better.

yas530 has offset registers that need to be persisted along with any
compass bias information.  These changes, along with the associated
kernel update make that possible.  Note that this change breaks
compatibility with previous versions of libmpl.so.

Change-Id: I2e4e6e0cf6330397f0a9e2e0536ff00dcc6d7a3a
fix loading the mldmp shared lib.

need to call dlerror after the call to dlopen, on android anyway.

Change-Id: I98bebb729ac877dc809142ad5cfb8acaa3f0fdac
remove an ugly newline

Change-Id: Ia238871fd72915adda60e51fb951cf07cf2df4d5
merge fix for inv_get_accel_bias_float

Change-Id: If54592a18e507761430ba597fbb1e11c960a02a6
update compass accuracy output when using default.

also correct problem with resetting default cal.
binary library name changed, per instructions from goog.

Change-Id: Ic12a0c4478da8fc9d9d9a21b11aef415e13905dc
dynamically construct the sensor list.

MPL integration is modified such that the list of sensors
returned at sensorservice init time is dynamic and is based
on whether or not the InvenSense 9axis binary is present.
Real values for the sensor properties (range, power, res) are
provided.

Change-Id: I594597e8c7a8368c15e9095d61a6ce6d3c55d8f2
Fix various issues with the sensor HAL

This commit fixes the following reported issues:
1) there are a lot of LOG spew
Silent Poll__setDelay and Poll__activiate LOG spew.
Changed "setDelay handle" to LOGD instead of of LOGE.

2) Gyro HAL reports a resolution of 0.28 rad/s, that is 16 deg/s. That seems wrong.
It appears the previous values we used was under the most sensitive settings, the new value is using an average setting instead.

3) The orientation sensor reports a name of "MPL Orientation (android deprecated format)". Please remove the "android deprecated format"
from the name.
Removed "android deprecated format"

4) MPL linear accel reports a max range of 10240.0 m/s^2. This seems wrong (that 1000+ Gs!!) Please rename to "MPL Linear Acceleration" (accel is not a word).
It appears that the dynamic sensor list does not recognize the accel id (or compass id) that were passed, causing the system to always read the initialized value. This is now fixed.
Renamed to MPL Linear Acceleration and MPL labels to be more humanly readable.

5) Fix for more accurate time stamps. This is a small subset of what we committed to Rocky's team and Kevin felt it was an easy change.
Instead of using system time stamp, the fix is to retrive timestamp directly from the driver when an IRQ is fired.

Change-Id: I8cfbd7cdecbd2e25613204ec1013e6079de97f37
Integrate Noise Filter Providied by Yamaha

This patch contains a software filter to reduce compass noise observed in LTE devices.
A new set of filter parameters provided by Yamaha has been applied.
A median filter has replaced the lowpass filter.
Filter parameters for Rev 0.2 daughter board have been applied.

Signed-off-by: Rosa Chow <rchow@invensense.com>
Signed-off-by: Jinkyu Song <jksong@sta.samsung.com>

Change-Id: I1662ce146373d302e2af50d0d9708d904c188560
Integrate Noise Filter Providied by Yamaha

This patch contains a software filter to reduce compass noise observed in LTE devices.
A new set of filter parameters provided by Yamaha has been applied.
A median filter has replaced the lowpass filter.
Filter parameters for Rev 0.2 daughter board have been applied.

Change-Id: I3685a4aa76a7366e318e83a9149cfde7b23757a1
Signed-off-by: Rosa Chow <rchow@invensense.com>
Signed-off-by: Jinkyu Song <jksong@sta.samsung.com>
Apply compass filter only on devices that need it

wether the filter is applied is defined in BoardConfig.mk

Change-Id: I32eedb82e7b42c8a7adc44352d981dca9ce6a986
Apply compass filter only on devices that need it

wether the filter is applied is defined in BoardConfig.mk

Change-Id: I187115754762ec7c9c2a93e296377dee5437b242
am 8dd45d19: (-s ours) Integrate Noise Filter Providied by Yamaha

* commit '8dd45d19608d8cdce7f76439a9634cb48ba841b9':
  Integrate Noise Filter Providied by Yamaha
am 1bf221b3: Apply compass filter only on devices that need it

* commit '1bf221b3e807755d0a7df9fbb36f5ab17ca045c3':
  Apply compass filter only on devices that need it
remove unused code

Change-Id: Ib10ead02f1dc8bd8106dcdd0efb1e018eb37430a
silence sensor library

Change-Id: Ia7ee741589eebb7cb47dfc987ca2f2ff039d9e1d
Write to calibration file depends on figure 8 motion (compass)

This patch will allow writing to calibration file when compass is enabled and
figure 8 is performed. Previously, writing to calibration file depends on
gyro no motion state.
Change-Id: I81ea466e9878ecbfdc0241ec577da856c919b74b
Write the calibration as soon as compass gets a MEDIUM accuracy.

previously, we would wait for the device to be in a no motion
state for a few seconds -- which might never happen before the
sensors are turned off.

Change-Id: I94815b942b4d035ec1c549ed732548538adcd355