OSDN Git Service

libsensors: modified default gyro orientation
authorMatt Gumbel <matthew.k.gumbel@linux.intel.com>
Mon, 12 Nov 2012 18:43:12 +0000 (10:43 -0800)
committerMattias Pettersson <mattias.pettersson@intel.com>
Wed, 4 Dec 2013 14:13:12 +0000 (15:13 +0100)
Updated for IVB reference board. This approach isn't scalable -- will
need installer approach for future devices.

For: AXIA-1092
Change-Id: Ie992380b3b05468e256afbb2f97e264097784ee1
Signed-off-by: Matt Gumbel <matthew.k.gumbel@linux.intel.com>
bigcore/libsensors/SensorConfig.h

index 124c5e0..2d7aa9c 100644 (file)
@@ -150,9 +150,9 @@ inline float convert_from_vtf_format(int size, int exponent, unsigned int value)
 #define DEF_ORIENT_ACCEL_Y                   -1
 #define DEF_ORIENT_ACCEL_Z                   -1
 
-#define DEF_ORIENT_GYRO_X                   -1
-#define DEF_ORIENT_GYRO_Y                   -1
-#define DEF_ORIENT_GYRO_Z                   -1
+#define DEF_ORIENT_GYRO_X                   1
+#define DEF_ORIENT_GYRO_Y                   1
+#define DEF_ORIENT_GYRO_Z                   1
 
 // G to m/s2
 #define CONVERT_FROM_VTF16(s,d,x)      (convert_from_vtf_format(s,d,x))