On New Calibration Measurement Available Listener
fun interface OnNewCalibrationMeasurementAvailableListener<C : SingleSensorStaticIntervalCalibrator<C, R, *, *, *, *>, R>
Interface to notify when a new measurement is obtained for calibration purposes. Such measurements are determined each time a static period finishes (when sensor measurements stop being static). When enough of these measurements are obtained, calibration can actually be solved.
Functions
Link copied to clipboard
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.