IMU::getRoll()
Get the roll angle Φ (roll): the angle of rotation around the X axis.
Return Values
Example
#include "uKitExplore2.h"
void setup() {
Initialization();
IMU::init();
}
void loop() {
IMU::read();
Serial.print("Roll:");
Serial.print(IMU::getRoll());
Serial.print(",Pitch:");
Serial.println(IMU::getPitch());
delay(400);
}

Last updated