diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2019-01-28 23:13:53 -0800 |
---|---|---|
committer | Justin TerAvest <teravest@chromium.org> | 2019-02-07 21:44:21 +0000 |
commit | b2ec2a5eb56f9f6bb769ed0200fe11bcc075167d (patch) | |
tree | af25ca8237d5c0a86134187c2894246c2937fb27 /common | |
parent | ef77e161fde5263165946c98dfe9e3c9f4e7e13b (diff) | |
download | chrome-ec-b2ec2a5eb56f9f6bb769ed0200fe11bcc075167d.tar.gz |
common: mag_cal: Add comment in mag_cal
Make it clear the magnetometer calibration code needs input is a
specific range. 16LSB/uT.
BUG=none
TEST=compile
BRANCH=none
Change-Id: I8dd17e528838ca6b43b93c4649637168a02f4248
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/1444093
Tested-by: Justin TerAvest <teravest@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-by: Karthikeyan Ramasubramanian <kramasub@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/mag_cal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/mag_cal.c b/common/mag_cal.c index 1e71059921..db09050007 100644 --- a/common/mag_cal.c +++ b/common/mag_cal.c @@ -13,7 +13,7 @@ #include "math_util.h" #include "util.h" -/* Data from sensor is in 16th of uT */ +/* Data from sensor is in 16th of uT, 0.0625 uT/LSB */ #define MAG_CAL_RAW_UT 16 #define MAX_EIGEN_RATIO FLOAT_TO_FP(25.0f) |