OSDN Git Service

Moping the floor: hamonize comments delimiters
authorPatrick Porlan <patrick.porlan@intel.com>
Fri, 21 Nov 2014 09:05:17 +0000 (10:05 +0100)
committerGerrit Code Review <gerrit@mcg-psi-gcr1.jf.intel.com>
Fri, 21 Nov 2014 14:59:24 +0000 (06:59 -0800)
// is fine, and I like it, but I like consistency even more

Change-Id: I906c5adc00f4ebe1cbe46e69248a3c80a0aa9403
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
compass-calibration.c
transform.c

index 10ac9d7..b663b3a 100644 (file)
@@ -70,7 +70,7 @@ static double calc_square_err (struct compass_cal* data)
     return err;
 }
 
-// Given an real symmetric 3x3 matrix A, compute the eigenvalues
+/* Given an real symmetric 3x3 matrix A, compute the eigenvalues */
 static void compute_eigenvalues(double mat[3][3], double* eig1, double* eig2, double* eig3)
 {
     double p = mat[0][1] * mat[0][1] + mat[0][2] * mat[0][2] + mat[1][2] * mat[1][2];
@@ -372,8 +372,10 @@ static int compass_collect (struct sensors_event_t* event, struct sensor_info_t*
     lookback_count = lookback_counts[info->cal_level];
     min_diff = min_diffs[info->cal_level];
 
-    // For the current point to be accepted, each x/y/z value must be different enough
-    // to the last several collected points
+    /*
+     * For the current point to be accepted, each x/y/z value must be different
+     * enough to the last several collected points.
+     */
     if (cal_data->sample_count > 0 && cal_data->sample_count < MAGN_DS_SIZE) {
         unsigned int lookback = lookback_count < cal_data->sample_count ? lookback_count :
                         cal_data->sample_count;
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)