diff options
author | Keith Packard <keithp@keithp.com> | 2017-09-12 13:33:13 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-09-12 13:33:13 -0700 |
commit | b48966c3121e1b5d4a659bebcad595d6f1ec5ee5 (patch) | |
tree | f6d3f02225e41e6d2352a7d943e7474590e84c26 /altoslib | |
parent | f607a882a50aa6cd9e8e3e74cbaa5bcc1b5fa4a4 (diff) |
altoslib: Correctly parse IMU cal data
Was trying to match 'IMU call along' instead of 'IMU cal along',
causing the line to not match and losing the IMU accel cal values.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib')
-rw-r--r-- | altoslib/AltosConfigData.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/altoslib/AltosConfigData.java b/altoslib/AltosConfigData.java index d85f735b..dc036867 100644 --- a/altoslib/AltosConfigData.java +++ b/altoslib/AltosConfigData.java @@ -405,7 +405,7 @@ public class AltosConfigData { /* HAS_GYRO */ try { - if (line.startsWith("IMU call along")) { + if (line.startsWith("IMU cal along")) { String[] bits = line.split("\\s+"); if (bits.length >= 8) { accel_zero_along = Integer.parseInt(bits[3]); |