Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/algos/calibration/gyroscope/
Dgyro_stillness_detect.c28 void gyroStillDetInit(struct GyroStillDet* gyro_still_det, in gyroStillDetInit() argument
31 memset(gyro_still_det, 0, sizeof(struct GyroStillDet)); in gyroStillDetInit()
36 gyro_still_det->confidence_delta = confidence_delta; in gyroStillDetInit()
38 gyro_still_det->confidence_delta = var_threshold; in gyroStillDetInit()
43 gyro_still_det->var_threshold = var_threshold; in gyroStillDetInit()
46 gyro_still_det->start_new_window = true; in gyroStillDetInit()
50 void gyroStillDetUpdate(struct GyroStillDet* gyro_still_det, in gyroStillDetUpdate() argument
69 gyro_still_det->num_acc_samples++; in gyroStillDetUpdate()
72 gyro_still_det->mean_x += x; in gyroStillDetUpdate()
73 gyro_still_det->mean_y += y; in gyroStillDetUpdate()
[all …]
Dgyro_stillness_detect.h96 void gyroStillDetInit(struct GyroStillDet* gyro_still_det,
100 void gyroStillDetUpdate(struct GyroStillDet* gyro_still_det,
105 float gyroStillDetCompute(struct GyroStillDet* gyro_still_det);
109 void gyroStillDetReset(struct GyroStillDet* gyro_still_det, bool reset_stats);