Searched refs:gyro_still_det (Results 1 – 2 of 2) sorted by relevance
29 void gyroStillDetInit(struct GyroStillDet* gyro_still_det, float var_threshold, in gyroStillDetInit() argument32 memset(gyro_still_det, 0, sizeof(struct GyroStillDet)); in gyroStillDetInit()37 gyro_still_det->confidence_delta = confidence_delta; in gyroStillDetInit()39 gyro_still_det->confidence_delta = var_threshold; in gyroStillDetInit()44 gyro_still_det->var_threshold = var_threshold; in gyroStillDetInit()47 gyro_still_det->start_new_window = true; in gyroStillDetInit()51 void gyroStillDetUpdate(struct GyroStillDet* gyro_still_det, in gyroStillDetUpdate() argument70 gyro_still_det->num_acc_samples++; in gyroStillDetUpdate()73 gyro_still_det->mean_x += x; in gyroStillDetUpdate()74 gyro_still_det->mean_y += y; in gyroStillDetUpdate()[all …]
96 void gyroStillDetInit(struct GyroStillDet* gyro_still_det, float var_threshold,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);