diff options
author | Mathias Agopian <mathias@google.com> | 2011-05-17 22:54:42 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-05-27 17:04:55 -0700 |
commit | b62013f6aafee08cfad25a2712dc32264e44f783 (patch) | |
tree | c97b8969e4ef613eb50132c6fb67db73972f0892 /include/gui | |
parent | bc00846436c1a332ed787afee4bec861b8bf5816 (diff) | |
download | frameworks_native-b62013f6aafee08cfad25a2712dc32264e44f783.zip frameworks_native-b62013f6aafee08cfad25a2712dc32264e44f783.tar.gz frameworks_native-b62013f6aafee08cfad25a2712dc32264e44f783.tar.bz2 |
9-axis sensor fusion with Kalman filter
Add support for 9-axis gravity and linear-acceleration sensors
virtual orientation sensor using 9-axis fusion
Change-Id: I6717539373fce781c10e97b6fa59f68a831a592f
Diffstat (limited to 'include/gui')
-rw-r--r-- | include/gui/Sensor.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/gui/Sensor.h b/include/gui/Sensor.h index 2de07b1..e59757a 100644 --- a/include/gui/Sensor.h +++ b/include/gui/Sensor.h @@ -21,8 +21,9 @@ #include <sys/types.h> #include <utils/Errors.h> -#include <utils/String8.h> #include <utils/Flattenable.h> +#include <utils/String8.h> +#include <utils/Timers.h> #include <hardware/sensors.h> @@ -64,6 +65,8 @@ public: float getResolution() const; float getPowerUsage() const; int32_t getMinDelay() const; + nsecs_t getMinDelayNs() const; + int32_t getVersion() const; // Flattenable interface virtual size_t getFlattenedSize() const; @@ -83,6 +86,7 @@ private: float mResolution; float mPower; int32_t mMinDelay; + int32_t mVersion; }; // ---------------------------------------------------------------------------- |