summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-05-17 22:54:42 -0700
committerMathias Agopian <mathias@google.com>2011-05-27 17:04:55 -0700
commit73e0bc805a143d8cc2202fccb73230459edc6869 (patch)
tree59aeea0bcd592df160cf08606fa03cd5fa0a4211 /include
parent48a542aabe2d58a0c3e7bac7f384d9951e5a26ed (diff)
downloadframeworks_base-73e0bc805a143d8cc2202fccb73230459edc6869.zip
frameworks_base-73e0bc805a143d8cc2202fccb73230459edc6869.tar.gz
frameworks_base-73e0bc805a143d8cc2202fccb73230459edc6869.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')
-rw-r--r--include/gui/Sensor.h6
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;
};
// ----------------------------------------------------------------------------