Reference   Language | Libraries | Comparison | Changes

Arduino_LSM6DS3 : LSM6DS3 class

gyroscopeSampleRate()

Description

Return the gyroscope sample rate.

Syntax

IMU.gyroscopeSampleRate()

Parameters

None

Returns

The gyroscope sensor sample rate in Hz

Example


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

See Also

Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.