UncalibratedMagnetometer Class

The uncalibrated magnetometer (https://w3c.github.io/magnetometer/#uncalibrated-magnetometer-interface): the magnetic field without the hard iron distortion correction, and the correction, in µT. It reads the DeviceSensorType.UncalibratedMagnetometer sensor of the device.

public sealed class UncalibratedMagnetometer : Sensor
Inheritance
Sensor UncalibratedMagnetometer

Constructors

NameDescription
UncalibratedMagnetometer(MagnetometerSensorOptions?)Creates an uncalibrated magnetometer.

UncalibratedMagnetometer(MagnetometerSensorOptions?)

MotionSensors.cs

Creates an uncalibrated magnetometer.

public UncalibratedMagnetometer(MagnetometerSensorOptions? sensorOptions = null)

Properties

NameDescription
XGets the uncalibrated magnetic field along the X axis, or null.
XBiasGets the hard iron distortion correction along the X axis, or null.
YGets the uncalibrated magnetic field along the Y axis, or null.
YBiasGets the hard iron distortion correction along the Y axis, or null.
ZGets the uncalibrated magnetic field along the Z axis, or null.
ZBiasGets the hard iron distortion correction along the Z axis, or null.

Gets the uncalibrated magnetic field along the X axis, or null.

public double? X { get; }

Gets the hard iron distortion correction along the X axis, or null.

public double? XBias { get; }

Gets the uncalibrated magnetic field along the Y axis, or null.

public double? Y { get; }

Gets the hard iron distortion correction along the Y axis, or null.

public double? YBias { get; }

Gets the uncalibrated magnetic field along the Z axis, or null.

public double? Z { get; }

Gets the hard iron distortion correction along the Z axis, or null.

public double? ZBias { get; }