OSDN Git Service

Reinstate monotonic timestamp in data acquisition threads
[android-x86/hardware-intel-libsensors.git] / transform.c
index e5842ba..90834be 100644 (file)
@@ -86,7 +86,7 @@ inline float convert_from_vtf_format(int size, int exponent, unsigned int value)
     }
 }
 
-// Platform sensor orientation
+/* Platform sensor orientation */
 #define DEF_ORIENT_ACCEL_X                   -1
 #define DEF_ORIENT_ACCEL_Y                   -1
 #define DEF_ORIENT_ACCEL_Z                   -1
@@ -95,7 +95,7 @@ inline float convert_from_vtf_format(int size, int exponent, unsigned int value)
 #define DEF_ORIENT_GYRO_Y                   1
 #define DEF_ORIENT_GYRO_Z                   1
 
-// G to m/s2
+/* G to m/s2 */
 #define CONVERT_FROM_VTF16(s,d,x)      (convert_from_vtf_format(s,d,x))
 #define CONVERT_A_G_VTF16E14_X(s,d,x)  (DEF_ORIENT_ACCEL_X *\
                                         convert_from_vtf_format(s,d,x)*GRAVITY)
@@ -104,7 +104,7 @@ inline float convert_from_vtf_format(int size, int exponent, unsigned int value)
 #define CONVERT_A_G_VTF16E14_Z(s,d,x)  (DEF_ORIENT_ACCEL_Z *\
                                         convert_from_vtf_format(s,d,x)*GRAVITY)
 
-// Degree/sec to radian/sec
+/* Degree/sec to radian/sec */
 #define CONVERT_G_D_VTF16E14_X(s,d,x)  (DEF_ORIENT_GYRO_X *\
                                         convert_from_vtf_format(s,d,x) * \
                                         M_PI/180)
@@ -115,7 +115,7 @@ inline float convert_from_vtf_format(int size, int exponent, unsigned int value)
                                         convert_from_vtf_format(s,d,x) * \
                                         M_PI/180)
 
-// Milli gauss to micro tesla
+/* Milli gauss to micro tesla */
 #define CONVERT_M_MG_VTF16E14_X(s,d,x) (convert_from_vtf_format(s,d,x)/10)
 #define CONVERT_M_MG_VTF16E14_Y(s,d,x) (convert_from_vtf_format(s,d,x)/10)
 #define CONVERT_M_MG_VTF16E14_Z(s,d,x) (convert_from_vtf_format(s,d,x)/10)