Mpu9250.CalibrateMagnetometer(Int32) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
member this.CalibrateMagnetometer : int -> System.Numerics.Vector3
[<System.Device.Model.Command(null, null)>]
member this.CalibrateMagnetometer : int -> System.Numerics.Vector3
Public Function CalibrateMagnetometer (Optional calibrationCounts As Integer = 1000) As Vector3
- calibrationCounts
- Int32
number of points to read during calibration, default is 1000
Returns the factory calibration data
- Attributes
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 |