 
 void loop() {
    updateAccelerationAndGyro();
-   updateLoudness();
+   calc_xy_angles();
+   //updateLoudness();
    bleTransmitSensorData();
-   
+   Serial.println("Test");
    delay(1000);
 }
 

   char out[100];
   
   // xxxx.xxx|xxxx.xxx|xxxx.xxx|xxxx.xxx|xxxx.xxx|xxxx.xxx|xxxx.xxx"%4.3f|%4.3f|%4.3f|%4.3f|%4.3f|%4.3f|%4.3f"
   sprintf(out, "%s", Ax);
   Serial.println(out);
   
   if (Serial1.available()) {
      Serial1.write(out);
   }
}

void setup() {
   // Console (remove when not used)

#include <Wire.h>
#include <Streaming.h>
#include <string.h>
#include <math.h>
//====the offset of gyro===========
#define Gx_offset  -1.50
#define Gy_offset  0
