AccelerometerSensorMeasurement

class AccelerometerSensorMeasurement(var ax: Float = 0.0f, var ay: Float = 0.0f, var az: Float = 0.0f, var bx: Float? = null, var by: Float? = null, var bz: Float? = null, timestamp: Long = 0, accuracy: SensorAccuracy? = null, var sensorType: AccelerometerSensorType = AccelerometerSensorType.ACCELEROMETER_UNCALIBRATED) : SensorMeasurement<AccelerometerSensorMeasurement>

Accelerometer sensor measurement.

Constructors

Link copied to clipboard
constructor(other: AccelerometerSensorMeasurement)

Copy constructor.

constructor(ax: Float = 0.0f, ay: Float = 0.0f, az: Float = 0.0f, bx: Float? = null, by: Float? = null, bz: Float? = null, timestamp: Long = 0, accuracy: SensorAccuracy? = null, sensorType: AccelerometerSensorType = AccelerometerSensorType.ACCELEROMETER_UNCALIBRATED)

Properties

Link copied to clipboard

sensor accuracy.

Link copied to clipboard
var ax: Float

acceleration on device x-axis expressed in meters per squared second (m/s^2) and in ENU coordinates system.

Link copied to clipboard
var ay: Float

acceleration on device y-axis expressed in meters per squared second (m/s^2) and in ENU coordinates system.

Link copied to clipboard
var az: Float

acceleration on device z-axis expressed in meters per squared second (m/s^2) and in ENU coordinates system.

Link copied to clipboard
var bx: Float?

bias on device x-axis expressed in meters per squared second (m/s^2) and in ENU coordinates system. Only available when using AccelerometerSensorType.ACCELEROMETER_UNCALIBRATED. If available, this value remains constant with calibrated bias value.

Link copied to clipboard
var by: Float?

bias on device y-axis expressed in meters per squared second (m/s^2) and in ENU coordinates system. Only available when using AccelerometerSensorType.ACCELEROMETER_UNCALIBRATED. If available, this value remains constant with calibrated bias value.

Link copied to clipboard
var bz: Float?

bias on device z-axis expressed in meters per squared second (m/s^2) and in ENU coordinates system. Only available when using AccelerometerSensorType.ACCELEROMETER_UNCALIBRATED. If available, this value remains constant with calibrated bias value.

Link copied to clipboard

accelerometer 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

Creates a new copy of this measurement.

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

Copies values from provided measurement.

Link copied to clipboard

Copies values to provided measurement.