Ak8963.CalibrateMagnetometer(Int32) Method

Definition

Calibrate the magnetometer. Make sure your sensor is as far as possible of magnet Calculate as well the magnetometer bias. Please make sure you are moving the magnetometer all over space, rotating it. Please make sure you are not close to any magnetic field like magnet or phone

public System.Numerics.Vector3 CalibrateMagnetometer (int numberOfMeasurements = 1000);
member this.CalibrateMagnetometer : int -> System.Numerics.Vector3
Public Function CalibrateMagnetometer (Optional numberOfMeasurements As Integer = 1000) As Vector3

Parameters

numberOfMeasurements
Int32

Number of measurement for the calibration, default is 1000

Returns

Returns the factory calibration data

Applies to