altoslib: Easy Motor v2 x axis is inverted
authorKeith Packard <keithp@keithp.com>
Sat, 17 Oct 2020 03:53:56 +0000 (20:53 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 22 Oct 2020 04:33:59 +0000 (21:33 -0700)
Provide positive accel values along rocket axis

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosEepromRecordMotor.java

index a2ec569a0c2340901313a01b1b3622835f03c028..a8f35db476c58f0a214f038c2f007dcdecde03c3 100644 (file)
@@ -36,7 +36,7 @@ public class AltosEepromRecordMotor extends AltosEepromRecord {
        private int v_batt() { return data16(2); }
        private int accel() { return data16(4); }
        private int accel_across() { return data16(6); }
-       private int accel_along() { return data16(8); }
+       private int accel_along() { return -data16(8); }
        private int accel_through() { return data16(10); }
 
        private int imu_type() {