Searched refs:sample_time_us (Results 1 – 4 of 4) sorted by relevance
/device/google/contexthub/firmware/os/algos/calibration/magnetometer/mag_cal/ |
D | mag_cal.c | 91 static bool moc_batch_complete(struct MagCal *moc, uint64_t sample_time_us) { in moc_batch_complete() argument 94 if ((sample_time_us - moc->start_time > moc->min_batch_window_in_micros) && in moc_batch_complete() 98 } else if (sample_time_us - moc->start_time > MAX_BATCH_WINDOW) { in moc_batch_complete() 141 enum MagUpdate magCalUpdate(struct MagCal *moc, uint64_t sample_time_us, in magCalUpdate() argument 152 moc->start_time = sample_time_us; in magCalUpdate() 157 if (moc_batch_complete(moc, sample_time_us)) { in magCalUpdate() 205 sample_time_us, in magCalUpdate() 216 moc->update_time = sample_time_us; in magCalUpdate()
|
D | mag_cal.h | 89 enum MagUpdate magCalUpdate(struct MagCal *moc, uint64_t sample_time_us,
|
/device/google/contexthub/firmware/os/algos/calibration/magnetometer/mag_sphere_fit_cal/ |
D | mag_sphere_fit.c | 98 uint64_t sample_time_us) { in magCalSphereFit() argument 109 if (sphereFitRunCal(&mocs->sphere_fit.sphere_cal, &data, sample_time_us)) { in magCalSphereFit() 121 uint64_t sample_time_us, float x, float y, in magCalSphereUpdate() argument 129 if (UPDATE_BIAS == magCalUpdate(&mocs->moc, sample_time_us, x, y, z)) { in magCalSphereUpdate() 131 new_cal = magCalSphereFit(mocs, sample_time_us); in magCalSphereUpdate()
|
D | mag_sphere_fit.h | 61 uint64_t sample_time_us, float x, float y,
|