Home
last modified time | relevance | path

Searched refs:sample_rate_estimator (Results 1 – 4 of 4) sorted by relevance

/device/google/contexthub/firmware/os/algos/calibration/sample_rate_estimator/
Dsample_rate_estimator.c26 struct SampleRateEstimator* sample_rate_estimator) { in sampleRateEstimatorResetAccumulator() argument
27 sample_rate_estimator->last_timestamp_nanos = 0.0f; in sampleRateEstimatorResetAccumulator()
28 sample_rate_estimator->interval_accumulator_nanos = 0.0f; in sampleRateEstimatorResetAccumulator()
29 sample_rate_estimator->num_intervals_collected = 0; in sampleRateEstimatorResetAccumulator()
32 void sampleRateEstimatorInit(struct SampleRateEstimator* sample_rate_estimator, in sampleRateEstimatorInit() argument
35 CHRE_ASSERT_NOT_NULL(sample_rate_estimator); in sampleRateEstimatorInit()
36 memset(sample_rate_estimator, 0, sizeof(struct SampleRateEstimator)); in sampleRateEstimatorInit()
37 sample_rate_estimator->mean_sampling_rate_estimate_hz = in sampleRateEstimatorInit()
39 sample_rate_estimator->num_intervals_to_collect = num_intervals_to_collect; in sampleRateEstimatorInit()
40 sample_rate_estimator->max_interval_nanos = in sampleRateEstimatorInit()
[all …]
Dsample_rate_estimator.h100 void sampleRateEstimatorInit(struct SampleRateEstimator* sample_rate_estimator,
113 struct SampleRateEstimator* sample_rate_estimator);
117 struct SampleRateEstimator* sample_rate_estimator,
/device/google/contexthub/firmware/os/algos/calibration/gyroscope/
Dgyro_cal.c195 sampleRateEstimatorInit(&gyro_cal->debug_gyro_cal.sample_rate_estimator, in gyroCalInit()
273 sampleRateEstimatorUpdate(&gyro_cal->debug_gyro_cal.sample_rate_estimator, in gyroCalUpdateGyro()
927 CAL_ENCODE_FLOAT(gyro_cal->debug_gyro_cal.sample_rate_estimator in gyroCalDebugPrintData()
Dgyro_cal.h69 struct SampleRateEstimator sample_rate_estimator; member