summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-10-03MotionApps 5.1.1 release, with MA 5.1.0 for further merge review.android-sdk-support_r11android-cts-4.2_r2android-cts-4.2_r1android-4.2_r1android-4.2.2_r1.2android-4.2.2_r1.1android-4.2.2_r1android-4.2.1_r1.2android-4.2.1_r1.1android-4.2.1_r1tools_r22jb-mr1.1-releasejb-mr1.1-dev-plus-aospjb-mr1.1-devjb-mr1-releasejb-mr1-dev-plus-aospjb-mr1-devJP Abgrall
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
2012-09-26Revert "Official MA 5.1.2 - RC11 Release"Ramanan Rajeswaran
This reverts commit 6a4d9a48ffde124c498496f6dae1e77c2cae6864 Change-Id: I85c4b326a2adf930fcd4a64e4c4f36e99f4fa4cb
2012-09-26Official MA 5.1.2 - RC11 ReleaseRosa Chow
Signed-off-by: Rosa Chow <rchow@invensense.com>
2012-06-29Fixed crash when accel is not functional or present.Rosa Chow
Samsung [Issue 6119492] in Buganizer.
2012-06-21libsensors_iio: Don't segfault when constructor fails when device absentJP Abgrall
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
2012-06-15HACK: libsensors: Initial attempt at MotionApps 5.1 for MPU6050 + AKM8975JP Abgrall
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>
2012-06-15Revert "HACK: libsensors: Initial attempt at MotionApps 5.1 for MPU6050 + ↵JP Abgrall
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.
2012-06-15Revert "libsensors: Fix build breakage. Don't build IIO hal unless requested"JP Abgrall
Does not fix it. Will also be reverting the iio hal until I understand the dependencies. This reverts commit a779188720ba7d7915bde21b18d89bc7bb6e6ebf.
2012-06-15libsensors: Fix build breakage. Don't build IIO hal unless requestedJP Abgrall
Avoid building the libinvensense_hal and other libs unless IIO is requested. Change-Id: I051c501bd3267e72cc4d66544dbbbbd5418ae680
2012-06-14HACK: libsensors: Initial attempt at MotionApps 5.1 for MPU6050 + AKM8975JP Abgrall
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>
2012-04-17Don't build invensense_hal when working with prebuilt sensor librariesandroid-cts-4.1_r4android-cts-4.1_r2android-cts-4.1_r1android-4.1.2_r2.1android-4.1.2_r2android-4.1.2_r1android-4.1.1_r6.1android-4.1.1_r6android-4.1.1_r5android-4.1.1_r4android-4.1.1_r3android-4.1.1_r2android-4.1.1_r1.1android-4.1.1_r1tools_r21jb-releasejb-mr0-releasejb-devJean-Baptiste Queru
Change-Id: Ibef5b8bce47b58ff22f287b622122d7e9dd69917
2012-04-13Don't build from source for grouperJean-Baptiste Queru
Bug: 6337189 Change-Id: I20fcf280fe2247318656138610c981bcc2e0b163
2012-04-03Merge remote-tracking branch 'goog/ics-aah'Mike Lockwood
2012-01-08Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block
See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: I014a2e6458d65646f674b98efdfa0d2970afeefa
2012-01-05Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGESteve Block
See https://android-git.corp.google.com/g/157065 Bug: 5449033 Change-Id: Iae90cea4d7984477041af753763e8b73ba936402
2012-01-03Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGESteve Block
See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: Iac750f408f5d349664414d8cc70234ed23305936
2011-11-11am 425eccbf: Fix for sensor rate not updating correctly Gyro sensor rate is ↵Rosa chow
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. .
2011-11-11am 425eccbf: Fix for sensor rate not updating correctly Gyro sensor rate is ↵Rosa chow
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. .
2011-11-10Fix for sensor rate not updating correctlyandroid-sdk-adt_r20android-sdk-4.0.3_r1android-sdk-4.0.3-tools_r1android-cts-verifier-4.0_r1android-cts-verifier-4.0.3_r1android-cts-4.0.3_r2android-cts-4.0.3_r1android-4.0.4_r2.1android-4.0.4_r2android-4.0.4_r1.2android-4.0.4_r1.1android-4.0.4_r1android-4.0.3_r1.1android-4.0.3_r1tools_r20ics-plus-aospics-mr1-releaseics-mr1Rosa chow
Gyro sensor rate is not correct if accel is enabled, change sensor rate, then enable gyro sensor. . Change-Id: I398bba660b34ed404a2ec156ad1f1a02dd6ed522
2011-10-28keep previous history after reset to mr1 plus aah changes (ics-aah-wip)Ed Heyl
2011-10-26undo reset to ics-mr1 until we have a better methodEd Heyl
2011-10-26reset to ics-mr1, but keep historyEd Heyl
2011-10-26am 86e0dce7: (-s ours) Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGESteve Block
* commit '86e0dce7c7630385989627d4d010695bb8a2b3f3': Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGE
2011-10-25am 4572c8fe: (-s ours) Rename LOG() to ALOG() DO NOT MERGESteve Block
* commit '4572c8fed0ab19dc00c4c0fb42b0c34d42dca333': Rename LOG() to ALOG() DO NOT MERGE
2011-10-25Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGESteve Block
See https://android-git.corp.google.com/g/#/c/143865 Bug: 5449033 Change-Id: I3a218dbc33c9c45352f728f7e76578abde6800c8
2011-10-25Rename LOG() to ALOG() DO NOT MERGESteve Block
See https://android-git.corp.google.com/g/#/c/141576 Bug: 5449033 Change-Id: I38b200310df82e0a7336edded8ba819455c9fc9b
2011-10-15SensorHAL: Reset compass calibrationandroid-sdk-adt_r16.0.1android-cts-4.0_r1android-4.0.2_r1android-4.0.1_r1.2android-4.0.1_r1.1android-4.0.1_r1ics-mr0-releaseics-mr0ics-factoryrom-2-releaseJinkyu Song
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>
2011-10-14SensorHAL: Handle the error flag for overflow or underflowRosa Chow
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
2011-10-12Changed accuracy for sensor handlers.Rosa Chow
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>
2011-10-12SensorHAL: Updated filter parameters for compass sensorJinkyu Song
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>
2011-10-11Fixed problem with compass not calibrating without Gyro.Rosa Chow
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
2011-10-11Fixed verbose messagesRosa Chow
'Actual ODR:' taken out. Change-Id: I1e2dd99785ac95a02d44ac70ef3bafcae0eb212c
2011-10-10Write the calibration as soon as compass gets a MEDIUM accuracy.Mathias Agopian
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
2011-10-10Write to calibration file depends on figure 8 motion (compass)Rosa Chow
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
2011-10-10silence sensor libraryMathias Agopian
Change-Id: Ia7ee741589eebb7cb47dfc987ca2f2ff039d9e1d
2011-10-10remove unused codeMathias Agopian
Change-Id: Ib10ead02f1dc8bd8106dcdd0efb1e018eb37430a
2011-09-30am 1bf221b3: Apply compass filter only on devices that need itMathias Agopian
* commit '1bf221b3e807755d0a7df9fbb36f5ab17ca045c3': Apply compass filter only on devices that need it
2011-09-30am 8dd45d19: (-s ours) Integrate Noise Filter Providied by YamahaRosa Chow
* commit '8dd45d19608d8cdce7f76439a9634cb48ba841b9': Integrate Noise Filter Providied by Yamaha
2011-09-30Apply compass filter only on devices that need itMathias Agopian
wether the filter is applied is defined in BoardConfig.mk Change-Id: I187115754762ec7c9c2a93e296377dee5437b242
2011-09-30Apply compass filter only on devices that need itMathias Agopian
wether the filter is applied is defined in BoardConfig.mk Change-Id: I32eedb82e7b42c8a7adc44352d981dca9ce6a986
2011-09-30Integrate Noise Filter Providied by YamahaRosa Chow
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>
2011-09-30Integrate Noise Filter Providied by YamahaRosa Chow
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
2011-09-14Fix various issues with the sensor HALRosa
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
2011-08-18dynamically construct the sensor list.Kevin Powell
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
2011-08-18binary library name changed, per instructions from goog.Kevin Powell
Change-Id: Ic12a0c4478da8fc9d9d9a21b11aef415e13905dc
2011-08-15update compass accuracy output when using default.Kevin Powell
also correct problem with resetting default cal.
2011-08-01merge fix for inv_get_accel_bias_floatKevin Powell
Change-Id: If54592a18e507761430ba597fbb1e11c960a02a6
2011-08-01remove an ugly newlineKevin Powell
Change-Id: Ia238871fd72915adda60e51fb951cf07cf2df4d5
2011-08-01fix loading the mldmp shared lib.Kevin Powell
need to call dlerror after the call to dlopen, on android anyway. Change-Id: I98bebb729ac877dc809142ad5cfb8acaa3f0fdac
2011-08-01handle yas530 offsets and stored cal better.Kevin Powell
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