IMU::getRawGyroY()

Get the gyroscope's Y-axis angular velocity

Return Values

Parameters

Type

Description

number

float

Y-axis angular velocity °/s

Example

circle-info

This feature requires an upgrade to the latest SDKarrow-up-right.

Use uKit Explore v2 board to get the XYZ angular velocity of the gyroscope and display it every 400ms to the serial monitor.

#include "uKitExplore2.h"
void setup() {    
    Initialization();    
    IMU::init();
}

void loop() {    
    IMU::read();    
    Serial.print("xGyro:");    
    Serial.print(IMU::getRawGyroX());    
    Serial.print(",yGyro:");    
    Serial.print(IMU::getRawGyroY());    
    Serial.print(",zGyro:");    
    Serial.println(IMU::getRawGyroZ());    
    delay(400);
}

Last updated

Was this helpful?