onNewCalibrationMeasurementAvailable

abstract fun onNewCalibrationMeasurementAvailable(calibrator: C, newMeasurement: R, measurementsFoundSoFar: Int, requiredMeasurements: Int)

Called when a new measurement for calibration is found. A new measurement each time a static period finishes (when sensor measurements stop being static). When enough of these measurements are obtained, calibration can actually be solved. This listener can be used to modify each measurement as it is being collected. Notice that changes to new measurements should be done carefully as they might affect result of solved calibration.

Parameters

calibrator

calibrator that raised the event.

newMeasurement

new measurement that has been found.

measurementsFoundSoFar

number of measurements that have been found so far.

requiredMeasurements

required number of measurements to solve calibration.