process

Processes provided synced accelerometer and gyroscope 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, timestamp: Long = gyroscopeMeasurement.timestamp): Boolean

Processes provided accelerometer and gyroscope 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.

timestamp

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