Arduino_LSM9DS1 - gyroscopeSampleRate()

Return the IMU’s gyroscope sample rate.

Syntax

IMU.gyroscopeSampleRate()

Parameters

None.

Returns

The IMU’s gyroscope sample rate in Hz.

Example

Serial.print("Gyroscope sample rate = ");
Serial.print(IMU.gyroscopeSampleRate());
Serial.println(" Hz");
Serial.println();
Serial.println("Angular speed in degrees/second");
Serial.println("X\tY\tZ");

See also