Will this code read the values properly ? Using MPU6050.h.
#include <MPU6050.h>
#include <Wire.h>
void setup() {
Serial.begin(115200);
Wire.begin();
MPU6050.initialize();
}
void loop() {
MPU6050.getWaitForExternalSensorEnabled();
float X = getRotationX();
float Y = getRotationY();
float Z = getRotationZ();
Serial.print("X:");
Serial.println(X);
Serial.print("Y:");
Serial.println(Y);
Serial.print("Z:");
Serial.println(Z);
}
Please be patient. I know nothing about gyroscope's working. I'm stupid.