From b62013f6aafee08cfad25a2712dc32264e44f783 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Tue, 17 May 2011 22:54:42 -0700 Subject: 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 --- include/gui/Sensor.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/gui') 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 #include -#include #include +#include +#include #include @@ -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; }; // ---------------------------------------------------------------------------- -- cgit v1.1