Ak8963.CalibrateMagnetometer(Int32) Method
Definition
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 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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for