Hello, I am using an Arduino to get the values of my on board gyro, the code I have used is the example code from the mbot library, when I upload the code, the x, y and z values are all 0.
The code is below:
#include “MeAuriga.h”
#include <Wire.h>
MeGyro gyro;
void setup()
{
Serial.begin(9600);
gyro.begin();
}
void loop()
{
gyro.update();
Serial.read();
Serial.print(“X:”);
Serial.print(gyro.getAngleX() );
Serial.print(" Y:");
Serial.print(gyro.getAngleY() );
Serial.print(" Z:");
Serial.println(gyro.getAngleZ() );
delay(10);
}