process

Processes provided synced accelerometer, gyroscope and magnetometer measurement to obtain a relative leveled attitude.

Return

true if a new attitude is estimated, false otherwise.

Parameters

syncedMeasurement

measurement to be processed.


fun process(accelerometerMeasurement: AccelerometerSensorMeasurement, gyroscopeMeasurement: GyroscopeSensorMeasurement, magnetometerMeasurement: MagnetometerSensorMeasurement, timestamp: Long = gyroscopeMeasurement.timestamp): Boolean

Processes provided accelerometer, gyroscope and magnetometer measurements at provided timestamp to obtain a relative leveled attitude.

Return

true if a new attitude is estimated, false otherwise.

Parameters

accelerometerMeasurement

accelerometer measurement to be processed.

gyroscopeMeasurement

gyroscope measurement to be processed.

magnetometerMeasurement

magnetometer measurement to be processed.

timestamp

timestamp when both measurements are assumed to occur. If not provided, this is assumed to be gyroscope timestamp.