summaryrefslogtreecommitdiff
path: root/include/math_util.h
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2014-09-23 11:18:14 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-09-25 04:09:07 +0000
commit7be8ff812ba802575be45e769d5ad833159b063a (patch)
treee526a8f37048dc73441df5b1373e0097c11256d1 /include/math_util.h
parent68704fea5f3f62ec3f5bb99fb4b5898781414aca (diff)
downloadchrome-ec-7be8ff812ba802575be45e769d5ad833159b063a.tar.gz
[common]: Remove accelerator calibration code.
This code is used to find the orientation of the sensor. Given sensor are aligned with the edges of the device, it is not too dificult to find manually. BRANCH=ToT BUG=None TEST=Check ACCEL_CALIBRATE is not used anymore. Check 'make buildall -j' works. Change-Id: I81ffcb4f6b01c530ef16baf13113a5942f615092 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/219527 Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'include/math_util.h')
-rw-r--r--include/math_util.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/include/math_util.h b/include/math_util.h
index 1dc92c4999..044c411b23 100644
--- a/include/math_util.h
+++ b/include/math_util.h
@@ -47,47 +47,5 @@ void rotate(const vector_3_t v, const matrix_3x3_t R,
vector_3_t res);
-#ifdef CONFIG_ACCEL_CALIBRATE
-
-/**
- * Multiply two 3x3 matrices.
- *
- * @param m1
- * @param m2
- * @param res Pointer to resultant matrix R = a1*a2;
- */
-void matrix_multiply(matrix_3x3_t *m1, matrix_3x3_t *m2, matrix_3x3_t *res);
-
-/**
- * Given an input matrix and an output matrix, solve for the rotation
- * matrix to get from the input matrix to the output matrix. Note, that this
- * operation is not guaranteed. In order to successfully calculate the rotation
- * matrix, the input must be linearly independent so that the matrix can be
- * inverted.
- *
- * This function solves the following matrix equation for R:
- * in * R = out
- *
- * If input matrix is invertible the resulting rotation matrix is stored in R.
- *
- * @param in
- * @param out
- * @param R Pointer to resultant matrix.
- *
- * @return EC_SUCCESS if successful
- */
-int solve_rotation_matrix(matrix_3x3_t *in, matrix_3x3_t *out, matrix_3x3_t *R);
-
-/**
- * Calculate magnitude of a vector.
- *
- * @param v Vector to be measured.
- *
- * @return Magnitued of vector v.
- */
-int vector_magnitude(const vector_3_t v);
-
-#endif
-
#endif /* __CROS_MATH_UTIL_H */