Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/algos/
Dtime_sync.c115 float mean_y = 0.0f; in time_sync_estimate_time1() local
119 mean_y += floatFromUint64(sync->time1[ii] - time1_base) * invN; in time_sync_estimate_time1()
134 float y = floatFromUint64(sync->time1[ii] - time1_base) - mean_y; 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.c74 if (PHI < asd->mean_y) { in accelStatsCounter()
78 if (PHIb > asd->mean_y) { in accelStatsCounter()
90 if (PHI > asd->mean_x && PHIb < asd->mean_x && PHI > asd->mean_y && in accelStatsCounter()
91 PHIb < asd->mean_y && PHIZ > asd->mean_z && PHIZb < asd->mean_z) { in accelStatsCounter()
269 asd->mean_y = asd->acc_y * inv; in accelStillnessDetection()
272 g_norm = asd->mean_x * asd->mean_x + asd->mean_y * asd->mean_y + in accelStillnessDetection()
297 kasaAccumulate(&ac1->akf, asd->mean_x, asd->mean_y, asd->mean_z); in accelGoodData()
304 kasaAccumulate(&ac1->akf, asd->mean_x, asd->mean_y, asd->mean_z); in accelGoodData()
307 if (PHI < asd->mean_y && ac1->agd.ny < ac1->agd.nfy) { in accelGoodData()
311 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.c74 gyro_still_det->mean_y += y; in gyroStillDetUpdate()
229 gyro_still_det->prev_mean_y = gyro_still_det->mean_y * tmp_denom; in gyroStillDetReset()
236 gyro_still_det->mean_y = 0; in gyroStillDetReset()
Dgyro_stillness_detect.h69 float mean_x, mean_y, mean_z; member