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
synced Measurement
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
accelerometer Measurement
accelerometer measurement to be processed.
gyroscope Measurement
gyroscope measurement to be processed.
timestamp
timestamp when both measurements are assumed to occur. If not provided, this is assumed to be gyroscope timestamp.