From: Keith Packard Date: Tue, 12 Sep 2017 20:33:13 +0000 (-0700) Subject: altoslib: Correctly parse IMU cal data X-Git-Tag: 1.8.2~2^2~18 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=b48966c3121e1b5d4a659bebcad595d6f1ec5ee5;p=fw%2Faltos 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 --- 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]);