MagnetometerSensorMeasurement

class MagnetometerSensorMeasurement(var bx: Float = 0.0f, var by: Float = 0.0f, var bz: Float = 0.0f, var hardIronX: Float? = null, var hardIronY: Float? = null, var hardIronZ: Float? = null, timestamp: Long = 0, accuracy: SensorAccuracy? = null, var sensorType: MagnetometerSensorType = MagnetometerSensorType.MAGNETOMETER_UNCALIBRATED) : SensorMeasurement<MagnetometerSensorMeasurement>

Magnetometer sensor measurement.

Constructors

Link copied to clipboard
constructor(other: MagnetometerSensorMeasurement)

Copy constructor.

constructor(bx: Float = 0.0f, by: Float = 0.0f, bz: Float = 0.0f, hardIronX: Float? = null, hardIronY: Float? = null, hardIronZ: Float? = null, timestamp: Long = 0, accuracy: SensorAccuracy? = null, sensorType: MagnetometerSensorType = MagnetometerSensorType.MAGNETOMETER_UNCALIBRATED)

Properties

Link copied to clipboard

sensor accuracy.

Link copied to clipboard
var bx: Float

magnetic field on device x-axis expressed in micro-Teslas (µT) and in ENU coordinates system.

Link copied to clipboard
var by: Float

magnetic field on device y-axis expressed in micro-Teslas (µT) and in ENU coordinates system.

Link copied to clipboard
var bz: Float

magnetic field on device z-axis expressed in micro-Teslas (µT) and in ENU coordinates system.

Link copied to clipboard

hard iron on device x-axis expressed in micro-Teslas (µT) and in ENU coordinates system. Only available when using MagnetometerSensorType.MAGNETOMETER_UNCALIBRATED. If available, this value remains constant with calibrated bias value.

Link copied to clipboard

hard iron on device y-axis expressed in micro-Teslas (µT) and in ENU coordinates system. Only available when using MagnetometerSensorType.MAGNETOMETER_UNCALIBRATED. If available, this value remains constant with calibrated bias value.

Link copied to clipboard

hard iron on device y-axis expressed in micro-Teslas (µT) and in ENU coordinates system. Only available when using MagnetometerSensorType.MAGNETOMETER_UNCALIBRATED. If available, this value remains constant with calibrated bias value.

Link copied to clipboard

magnetometer sensor type.

Link copied to clipboard

relative timestamp in nanoseconds at which the measurement was made. Each measurement will be monotonically increasing using the same time base as android.os.SystemClock.elapsedRealtimeNanos.

Functions

Link copied to clipboard
open override fun copy(): MagnetometerSensorMeasurement

Creates a new copy of this measurement.

Link copied to clipboard
open override fun copyFrom(other: MagnetometerSensorMeasurement)

Copies values from provided measurement.

Link copied to clipboard

Copies values to provided measurement.