Mpu9250.CalibrateMagnetometer(Int32) Method

Definition

Calibrate the magnetometer. Make sure your sensor is as far as possible of magnet. Move your sensor in all direction to make sure it will get enough data in all points of space Calculate as well the magnetometer bias

C#
public System.Numerics.Vector3 CalibrateMagnetometer (int calibrationCounts = 1000);
C#
[System.Device.Model.Command(null, null)]
public System.Numerics.Vector3 CalibrateMagnetometer (int calibrationCounts = 1000);

Parameters

calibrationCounts
Int32

number of points to read during calibration, default is 1000

Returns

Returns the factory calibration data

Attributes

Applies to

Toode Versioonid
.NET IoT Libraries 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0