Arduino_BMI270_BMM150 - magneticFieldSampleRate()

Return the IMU’s magnetometer sample rate.

Syntax

IMU.magneticFieldSampleRate()

Parameters

None.

Returns

The IMU’s magnetometer sample rate in Hz.

Example

Serial.print("Magnetic Field sample rate = ");
Serial.print(IMU.magneticFieldSampleRate());
Serial.println(" Hz");
Serial.println();
Serial.println("Magnetic Field in uT");
Serial.println("X\tY\tZ");

See also