Age | Commit message (Collapse) | Author |
|
1. Removed all #ifdef in HAL's member APIs.
2. Added necessary comments as reference.
3. Made changes for coding style, optimization and so on per prior comments.
4. Now raw/calibrated gyroscope sensors could co-exist
Default sensor would be calibrated gyroscope sensor
for getDefaultSensor() call in Android.
* Correctly handle onPower()/masterEnable().
* Use the support functions for reading/writing sysfs.
1 line instead of 9 all over the place.
* Fix return code for {read,write}_sysfs_int():
was > 0 in case of failure instead of < 0.
Bug: 7211625
Change-Id: Ib49dab8ca0f48f45a2838de72f4f8ac011d0e68f
|
|
This reverts commit 6a4d9a48ffde124c498496f6dae1e77c2cae6864
Change-Id: I85c4b326a2adf930fcd4a64e4c4f36e99f4fa4cb
|
|
Signed-off-by: Rosa Chow <rchow@invensense.com>
|
|
Samsung [Issue 6119492] in Buganizer.
|
|
Currently too much work is been done in the constructor.
If a device is not there in the kernel, the constructor will fail
to correctly initialize, and will leave a bunch of uninitialized strings
that when used will cause segfaults.
So now the classes have an isValid() method to be used after construction.
If false, the object should be destroyed.
Added extra checks to locate failed initialization.
Change-Id: I3f767f9dc0b0f19b66d034a683444baed771a5db
|
|
The code in this patch still needs work.
But checking it in will allow other parts of the sensor stack to have
something to work with.
1. Have sensor HAL for IIO driver, which uses MPU6050 + AKM8975 (on 2nd bus).
2. Include MPL binaries (libmllite.so/libmplmpu.so).
3. Include necessary header files.
4. remove light sensor dependency.
5. add missing include file.
6. modify the module name into "manta".
7. remove mlsdk directory.
8. Fix some known issues.
9. Sync up to June.12.
10. Tweak slightly so that it can be used with other sensors on manta and
doesn't break other devices that need a non IIO libsensors.
Change-Id: I0913a6df56fb0e99e9bae9ecc40ab03884d68124
Signed-off-by: Mars Lee <mlee@invensense.com>
|
|
AKM8975"
Need to revert this.
The new iio hal breaks the build for other devices.
I first need understand the dependencies.
This reverts commit c0aca57ba5869c883bb8ce2dd1d90db86c8212f9.
|
|
Does not fix it.
Will also be reverting the iio hal until I understand the dependencies.
This reverts commit a779188720ba7d7915bde21b18d89bc7bb6e6ebf.
|
|
Avoid building the libinvensense_hal and other libs unless
IIO is requested.
Change-Id: I051c501bd3267e72cc4d66544dbbbbd5418ae680
|
|
The code in this patch still needs work.
But checking it in will allow other parts of the sensor stack to have
something to work with.
1. Have sensor HAL for IIO driver, which uses MPU6050 + AKM8975 (on 2nd bus).
2. Include MPL binaries (libmllite.so/libmplmpu.so).
3. Include necessary header files.
4. remove light sensor dependency.
5. add missing include file.
6. modify the module name into "manta".
7. remove mlsdk directory.
8. Fix some known issues.
9. Sync up to June.12.
10. Tweak slightly so that it can be used with other sensors on manta.
Change-Id: Ibabcef6efe279724ad5d6f7640d66f99c59feaaf
Signed-off-by: Mars Lee <mlee@invensense.com>
|
|
Change-Id: Ibef5b8bce47b58ff22f287b622122d7e9dd69917
|
|
Bug: 6337189
Change-Id: I20fcf280fe2247318656138610c981bcc2e0b163
|
|
|
|
See https://android-git.corp.google.com/g/#/c/157220
Bug: 5449033
Change-Id: I014a2e6458d65646f674b98efdfa0d2970afeefa
|
|
See https://android-git.corp.google.com/g/157065
Bug: 5449033
Change-Id: Iae90cea4d7984477041af753763e8b73ba936402
|
|
See https://android-git.corp.google.com/g/156016
Bug: 5449033
Change-Id: Iac750f408f5d349664414d8cc70234ed23305936
|
|
not correct if accel is enabled, change sensor rate, then enable gyro sensor. .
* commit '425eccbf15c25c32cf073595d25ff50e51570c1b':
Fix for sensor rate not updating correctly Gyro sensor rate is not correct if accel is enabled, change sensor rate, then enable gyro sensor. .
|
|
not correct if accel is enabled, change sensor rate, then enable gyro sensor. .
* commit '425eccbf15c25c32cf073595d25ff50e51570c1b':
Fix for sensor rate not updating correctly Gyro sensor rate is not correct if accel is enabled, change sensor rate, then enable gyro sensor. .
|
|
Gyro sensor rate is not correct if accel is enabled, change sensor rate,
then enable gyro sensor.
.
Change-Id: I398bba660b34ed404a2ec156ad1f1a02dd6ed522
|
|
|
|
|
|
|
|
* commit '86e0dce7c7630385989627d4d010695bb8a2b3f3':
Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGE
|
|
* commit '4572c8fed0ab19dc00c4c0fb42b0c34d42dca333':
Rename LOG() to ALOG() DO NOT MERGE
|
|
See https://android-git.corp.google.com/g/#/c/143865
Bug: 5449033
Change-Id: I3a218dbc33c9c45352f728f7e76578abde6800c8
|
|
See https://android-git.corp.google.com/g/#/c/141576
Bug: 5449033
Change-Id: I38b200310df82e0a7336edded8ba819455c9fc9b
|
|
If compass calibration is not achieved for 10 seconds,
it starts over the whole calibration process.
Change-Id: Id362542985b464d10c99fa49ca465b1892ea5c5a
Signed-off-by: Jinkyu Song <jksong@sta.samsung.com>
|
|
Invensense libmllite needs to be notified when either overflow or underflow
happens in raw values.
When HAL requires to measure hardware offset, coil init will be triggered.
Change-Id: I9076b3928ae5a26230ddd308c3a238a4721c1f87
|
|
Samsung has requested to change orientation sensor
to use compass accuracy as the sensor accuracy number.
Change-Id: I9ad34d27f3485eefe85d551e7c025b5afbdf3ce0
Signed-off-by: Jinkyu Song <jksong@sta.samsung.com>
|
|
Filter parameters for the latest daughter board (Rev 0.7) have been applied.
Change-Id: I3b9936e68b6fff89c16cf029472ee3e353a8eb47
Signed-off-by: Jinkyu Song <jksong@sta.samsung.com>
|
|
Previously, when loading a corrupted cal.bin file, compass
cannot calibrate at all without gyro turned on.
With this patch, compass calibrates within 2-5 seconds on the HSPA phone.
Change-Id: I42fba9277cb0886dc2dadfac7e502c4b48060129
|
|
'Actual ODR:' taken out.
Change-Id: I1e2dd99785ac95a02d44ac70ef3bafcae0eb212c
|
|
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
|
|
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
|
|
Change-Id: Ia7ee741589eebb7cb47dfc987ca2f2ff039d9e1d
|
|
Change-Id: Ib10ead02f1dc8bd8106dcdd0efb1e018eb37430a
|
|
* commit '1bf221b3e807755d0a7df9fbb36f5ab17ca045c3':
Apply compass filter only on devices that need it
|
|
* commit '8dd45d19608d8cdce7f76439a9634cb48ba841b9':
Integrate Noise Filter Providied by Yamaha
|
|
wether the filter is applied is defined in BoardConfig.mk
Change-Id: I187115754762ec7c9c2a93e296377dee5437b242
|
|
wether the filter is applied is defined in BoardConfig.mk
Change-Id: I32eedb82e7b42c8a7adc44352d981dca9ce6a986
|
|
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>
|
|
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
|
|
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
|
|
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
|
|
Change-Id: Ic12a0c4478da8fc9d9d9a21b11aef415e13905dc
|
|
also correct problem with resetting default cal.
|
|
Change-Id: If54592a18e507761430ba597fbb1e11c960a02a6
|
|
Change-Id: Ia238871fd72915adda60e51fb951cf07cf2df4d5
|
|
need to call dlerror after the call to dlopen, on android anyway.
Change-Id: I98bebb729ac877dc809142ad5cfb8acaa3f0fdac
|
|
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
|