Home
last modified time | relevance | path

Searched refs:mean_x (Results 1 – 5 of 5) sorted by relevance

/device/google/contexthub/firmware/os/algos/
Dtime_sync.c114 float mean_x = 0.0f; in time_sync_estimate_time1() local
120 mean_x += floatFromUint64(sync->time2[ii] - time2_base) * invN; in time_sync_estimate_time1()
135 float x = floatFromUint64(sync->time2[ii] - time2_base) - mean_x; in time_sync_estimate_time1()
146 float alpha = mean_y - beta * mean_x; in time_sync_estimate_time1()
/device/google/contexthub/firmware/os/algos/calibration/accelerometer/
Daccel_cal.c68 if (PHI < asd->mean_x) { in accelStatsCounter()
72 if (PHIb > asd->mean_x) { in accelStatsCounter()
92 if (PHI > asd->mean_x && PHIb < asd->mean_x && PHI > asd->mean_y && in accelStatsCounter()
270 asd->mean_x = asd->acc_x * inv; in accelStillnessDetection()
274 g_norm = asd->mean_x * asd->mean_x + asd->mean_y * asd->mean_y + in accelStillnessDetection()
295 if (PHI < asd->mean_x && ac1->agd.nx < ac1->agd.nfx) { in accelGoodData()
299 kasaAccumulate(&ac1->akf, asd->mean_x, asd->mean_y, asd->mean_z); in accelGoodData()
302 if (PHIb > asd->mean_x && ac1->agd.nxb < ac1->agd.nfxb) { in accelGoodData()
306 kasaAccumulate(&ac1->akf, asd->mean_x, asd->mean_y, asd->mean_z); in accelGoodData()
313 kasaAccumulate(&ac1->akf, asd->mean_x, asd->mean_y, asd->mean_z); in accelGoodData()
[all …]
Daccel_cal.h53 float mean_x, mean_y, mean_z; member
/device/google/contexthub/firmware/os/algos/calibration/gyroscope/
Dgyro_stillness_detect.c73 gyro_still_det->mean_x += x; in gyroStillDetUpdate()
228 gyro_still_det->prev_mean_x = gyro_still_det->mean_x * tmp_denom; in gyroStillDetReset()
235 gyro_still_det->mean_x = 0; in gyroStillDetReset()
Dgyro_stillness_detect.h69 float mean_x, mean_y, mean_z; member