Correct tilt polarity
@@ -268,11 +268,19 @@ void blit_i2c_tick() {
accel_y.add(((int8_t)i2c_buffer[3] << 6) | (i2c_buffer[2] >> 2));
accel_z.add(((int8_t)i2c_buffer[5] << 6) | (i2c_buffer[4] >> 2));
+ if(is_beta_unit){
+ blit::tilt = Vec3(
+ accel_x.average(),
+ accel_y.average(),
+ -accel_z.average()
+ );
+ } else {
blit::tilt = Vec3(
-accel_x.average(),
-accel_y.average(),
-accel_z.average()
);
+ }
blit::tilt.normalize();
i2c_state = SEND_BAT;
