When ADXL 375 is used as a 3d accel (as on EasyMotor), need the right
counts_per_g to do conversions.
Signed-off-by: Keith Packard <keithp@keithp.com>
case imu_type_easytimer_v1:
return counts_per_g_bmx;
case imu_type_easymotor_v2:
- return counts_per_g_bmx;
+ return counts_per_g_adxl;
default:
return AltosLib.MISSING;
}
case imu_type_easytimer_v1:
return accel_x;
case imu_type_easymotor_v2:
- return accel_x;
+ return -accel_x;
default:
return AltosLib.MISSING;
}