Etienne Le Grand
7a813e8442
Modify sign of bias in uncalibrated magnetometer
...
bug 8632692
Change-Id: If92f0030e53d41a7d0bc3c3b003f5eb939123945
2013-04-23 14:32:22 -07:00
Etienne Le Grand
28f04113f5
Sensor HAL updates
...
Improve explanation of Batch mode
Put the 4th component of the unit quaternion back in the rotation vector
Modify rotation vector description
Modify definition of uncalibrated sensor event
Remove query()
Change-Id: I7564073fac0e2467bcfca040b259d9d20e2688c5
2013-04-04 15:14:58 -07:00
Etienne Le Grand
2e7d3cd8a8
Minor fix in significant motion description
...
Change-Id: I155181e43750948a6fd6fc246a4e0203cea7c9cb
2013-03-07 12:22:32 -08:00
Etienne Le Grand
1461f28f50
Add significant motion description
...
Change-Id: I56de3f2c12243b3d25cd825b66f7685e674533ff
2013-03-06 17:14:58 -08:00
Etienne Le Grand
ca8581433b
Sensors HAL iterative update for jb-mr2
...
Specified more precisely what the uncalibrated magnetometer should be
Added uncalibrated sensors event struct
Specified that rotation vector and game rotation vector have to use gyroscopes
Added magnetic field rotation vector
Added accuracy field to rotation vector and magnetometer rotation vector
Added section on comparative importance of batching different sensors
Specified that one-shot sensors must deactivate themselves before sending an event.
Change-Id: Ibc30ce6fc30e698af49a91930bd5a8316b6568b9
2013-03-04 14:59:27 -08:00
Jeff Brown
296cf93d10
Revert "only orientation and geomagnetic field sensors support the "status" field"
...
This reverts commit fbe985ca9c
Change-Id: I7c65fd3326fe08363b5ed491f6438e541df879d4
2013-02-09 02:46:33 +00:00
Mathias Agopian
fbe985ca9c
only orientation and geomagnetic field sensors support the "status" field
...
enforce this in the HAL API.
Change-Id: I54d2fde84a852482a96140f8f1945cc6044e628a
2013-02-06 19:06:57 -08:00
Mathias Agopian
1144bea332
improves sensors HAL documentation
...
- added a period parameter to batch()
- added drift-estimate to uncalibrated gyro
Change-Id: I9cba8099c8906ba111d401ecbb4341e338b338a8
2013-02-06 14:55:54 -08:00
Mathias Agopian
2f276f5550
renamed sensor PEDOMETER to STEP_DETECTOR
...
pedometer was confusing.
Change-Id: Ib40c8034e9038f7153299aed4ee33a0a9f1e900e
2013-01-28 17:54:41 -08:00
Andrew Hsieh
1082c0b54c
Fix build
...
Change-Id: Iaf3bba12e3f34d351890320b25aa340e75c1972c
2012-12-11 20:51:41 -08:00
Mathias Agopian
a455772cb3
sensor HAL major revision
...
mainly update the documentation, add new sensor types
and add a batch mode.
- TYPE_PEDOMETER, defines a pedometer sensor
- TYPE_SIGNIFICANT_MOTION, defines a sensor that triggers an
event when the device is moving "enough". This sensor must allow
the SoC to go into suspend, while it is enabled.
- TYPE_STEP_COUNTER, defines a pedometer but returns a step count
(and looses precise timestamps, per step).
Change-Id: I3e20ff165851b7cb318f3c6637a6580de156b8fe
2012-12-10 18:45:08 -08:00
Mathias Agopian
56f66ccfb4
Add support for new sensor types
...
- add support for SENSOR_TYPE_MAGNETIC_FIELD_UNCALIBRATED
- add support for SENSOR_TYPE_GAME_ROTATION_VECTOR
- add support for SENSOR_TYPE_GYROSCOPE_UNCALIBRATED
Change-Id: I83048eb239d2123b5ec1f411b99f1883080a646f
2012-11-12 17:17:32 -08:00
Mathias Agopian
e9eaf3721d
improve sensor HAL documentation
...
Change-Id: If2c1613902de6ed0e6cae8fe4755948c0f623bda
2011-11-08 12:20:21 -08:00
Mathias Agopian
15879d89af
change sensor HAL documentation to allow setting polling rate for "non continuous" sensors
...
the current API / Documentation would not allow to set the
rate of "non continuous" sensors.
Most sensors HAL implementation already support changing the rate
(technically they're not compliant with the doc), so it's easier
to change the doc (and also allows more control).
Change-Id: I4ad324ddc3b569ec61770b3cf927c06f8ff4af4e
2011-11-01 19:17:58 -07:00
Jean-Baptiste Queru
6e17d2c46c
Merge 48e4ab6b7
...
Change-Id: Ie034418055ed9b10608e06fd6e35d64bddb73598
2011-05-18 16:40:03 -07:00
Jean-Baptiste Queru
48e4ab6b74
am 83eb0af0
: Merge "support humidity sensor type"
...
* commit '83eb0af000c80bc9d9b2a19eb15ab22bb0dddb1b':
support humidity sensor type
2011-05-18 15:15:48 -07:00
Mathias Agopian
d93ff971bd
Improve ROTATION_VECTOR sensor documentation
...
Change-Id: Iebc978beadf365d63c60c04d54ce7331605348b3
2011-05-02 19:10:31 -07:00
Mathias Agopian
03dd9c671d
remove deprecated/unused HAL headers
...
copybit, overlay, sensors_deprecated are no longer supported.
Change-Id: Ie5da20bd4ff95f7565a162d628bf572a76327b7b
2011-04-28 20:09:45 -07:00
Urs Fleisch
d2ed15a6b8
support humidity sensor type
...
Change-Id: I7600d64ea28d2eefc20104cbf81270ddad9d57c0
2011-04-12 17:25:57 -07:00
Mathias Agopian
54f9dd032d
fix [4056232] Deprecate Sensor.TYPE_TEMPERATURE and add Sensor.TYPE_AMBIENT_TEMPERATURE
...
Bug: 4056232
Change-Id: I4555823abacc8aa127429bda78033ef6007aa04b
2011-03-22 18:44:02 -07:00
Mathias Agopian
1b514ad358
am 778ab436
: am 3cceacee
: Merge "update rotation-vector documentation." into gingerbread
...
* commit '778ab436dee2918ae2fa083f4afa4ba68dc39235':
update rotation-vector documentation.
2010-12-01 03:37:43 -08:00
Mathias Agopian
42b743c855
update rotation-vector documentation.
...
the rotation-vector sensor must transmit the W component of the
unit quaternion in data[4].
This change doesn't cause a compatibility issue because nothing in the
system relies on the W component being present.
Change-Id: If4f699ac8d41d8b957925b375e355a138a82dcf8
2010-11-22 15:55:32 -08:00
Mathias Agopian
8cd4162a14
resolved conflicts for merge of 72c113ee
to master
...
Change-Id: Icef7703423fdb153477bfd3dc49980e979bbd8e7
2010-09-15 12:08:05 -07:00
Mathias Agopian
c04e5f6890
Added a data field for gyroscopes and improved documentation.
...
Change-Id: Iddc9710d8b724af9285df0396949479dccc3de7a
2010-09-14 10:53:55 -07:00
Kenny Root
e8b8c39057
resolved conflicts for merge of 5e610d6a
to master
...
Change-Id: Ibeaa176ff4b25f81559d14dd8c73283ee4f2eacf
2010-08-24 10:22:45 -07:00
Kevin Powell
4ec14c1e23
add new sensor types for handling gyro data and device orientation more efficiently.
...
Change-Id: I89faf5b3d57a3e726d1c347ce01d931b100188cd
2010-08-20 19:25:04 -07:00
Jean-Baptiste Queru
5e610d6ad6
resolved conflicts for merge of b01a043d
to gingerbread-plus-aosp
...
Change-Id: I60466613c7ea0335a78d553a10876367d65557d9
2010-08-20 17:30:45 -07:00
Makarand Karvekar
3120b58768
hw: sensors: Add gyro field
...
Change-Id: I113f0a067fccbc8d69d1949b6af3ed9e119d0355
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-08-11 15:12:52 -07:00
Kevin Powell
b01a043df4
add new sensor types for handling gyro data and device orientation more efficiently.
...
Change-Id: I453b7a2e84b885ca207d9d938b923e1624554644
2010-08-05 09:51:37 -07:00
Mathias Agopian
1511e20fbb
improved comments and added a minDelay attribute to sensor_t
...
Change-Id: Ie00fe8260089614e15f1f8035b8392711dff048c
2010-07-29 15:33:22 -07:00
Mathias Agopian
1832f55760
Added definition/documentation for pressure sensors
...
Change-Id: I68b1bb74ebf1aceee09b6e8cbb8e37b906dbdcd0
2010-07-29 15:22:30 -07:00
Mathias Agopian
478994a758
improve sensor HAL documentation
...
Change-Id: If443c1d2e48c697fa8774bd94af4e65866d1dedb
2010-07-23 17:23:43 -07:00
Mathias Agopian
66a4095ca0
Be more explicit about the rate at which sensor events must be returned
...
Change-Id: I937e84c34c539b4e3ff34eddcf4fb24e2866ebfa
2010-07-22 17:11:50 -07:00
Mathias Agopian
98c5309047
move the old sensorHAL interface into a separate header
...
sensors_deprecated.h is included from sensors.h, for
easier reading.
Change-Id: I97883e1db73beb6c612da2ec023ee6bb8d4858c3
2010-07-19 15:32:24 -07:00
Mathias Agopian
cdefccdba5
new sensor_event_t structure for the new HAL that can handle bigger payloads
...
Change-Id: I8f21e457c308eea9cb1f73b49b1fed36627ec55e
2010-07-19 14:14:04 -07:00
Mathias Agopian
b1e212e7b6
New sensor HAL and test
...
Change-Id: I216e3dd0b2b45829fef7c682774d2cdd8271d4e7
2010-07-14 20:39:46 -07:00
Mathias Agopian
19ea59f865
[2472946] Sensor.TYPE_ORIENTATION returns inverted roll values
...
update the documentation is sensors.h to reflect reality.
2010-02-26 13:30:21 -08:00
Mike Lockwood
a241431607
Add documentation for proximity and light sensors.
...
Change-Id: I5692e803e33aefbfd79c156fec7700d972140dc4
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-11-03 10:29:50 -05:00
Mike Lockwood
2bedac69dc
sensors: whitespace clean up
...
Change-Id: I49da2d17dae2f9f958a0ccb205c41a83c123802c
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-04 12:09:05 -04:00
Mike Lockwood
fbbb347f17
sensors: Add optional close_data_source call
...
Change-Id: I591afea509ee055211a4beeaa83b12692e251f67
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-29 11:55:27 -04:00
Iliyan Malchev
61fee89f2d
libhardware: add a field for reporting light levels
...
Signed-off-by: Iliyan Malchev <malchev@google.com>
2009-08-20 16:47:17 -07:00
Iliyan Malchev
f5a22bcfa6
libhardware: add data field for proximity sensors
...
Signed-off-by: Iliyan Malchev <malchev@google.com>
2009-07-08 13:54:17 -07:00
Bill Napier
8d567480b4
Update open_data_source documentation to accurately reflect the correct return value on error.
2009-06-02 17:46:10 -07:00
Mike Lockwood
21b652f933
Sensors: Use a native_handle for the data channel instead of a single file descriptor.
...
This eliminates the requirement that all sensors share a single file descriptor.
This, along with concurrent changes in other projects, fixes bugs b/1614524 and b/1614481
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-05-22 17:44:40 -04:00
Mathias Agopian
465cf474be
fix [1847499] sensors.h : "roll" documentation is wrong
2009-05-18 14:09:59 -07:00
The Android Open Source Project
f53ebec387
auto import from //depot/cupcake/@135843
2009-03-03 19:32:14 -08:00
The Android Open Source Project
d51f49a11d
auto import from //depot/cupcake/@135843
2009-03-03 18:28:48 -08:00
The Android Open Source Project
b376203efb
auto import from //branches/cupcake/...@130745
2009-02-10 15:44:04 -08:00
The Android Open Source Project
51704bed79
Code drop from //branches/cupcake/...@124589
2008-12-17 18:05:50 -08:00
The Android Open Source Project
d6054a3647
Initial Contribution
2008-10-21 07:00:00 -07:00