Home
last modified time | relevance | path

Searched refs:sample_time_us (Results 1 – 2 of 2) sorted by relevance

/device/google/contexthub/firmware/os/algos/calibration/magnetometer/
Dmag_cal.c145 static int moc_batch_complete(struct MagCal *moc, uint64_t sample_time_us) { in moc_batch_complete() argument
148 if ((sample_time_us - moc->start_time > MIN_BATCH_WINDOW) && in moc_batch_complete()
152 } else if (sample_time_us - moc->start_time > MAX_BATCH_WINDOW) { in moc_batch_complete()
211 bool magCalUpdate(struct MagCal *moc, uint64_t sample_time_us, float x, float y, in magCalUpdate() argument
241 moc->start_time = sample_time_us; in magCalUpdate()
245 if (moc_batch_complete(moc, sample_time_us)) { in magCalUpdate()
286 moc->update_time = sample_time_us; in magCalUpdate()
Dmag_cal.h71 bool magCalUpdate(struct MagCal *moc, uint64_t sample_time_us, float x, float y,