Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/drivers/tilt_detection/
Dtilt_detection.c47 float this_batch_sample_sum[3]; member
98 state->this_batch_sample_sum[0] += sample->x; in algoUpdate()
99 state->this_batch_sample_sum[1] += sample->y; in algoUpdate()
100 state->this_batch_sample_sum[2] += sample->z; in algoUpdate()
108 state->this_batch_g[0] = state->this_batch_sample_sum[0] * invN; in algoUpdate()
109 state->this_batch_g[1] = state->this_batch_sample_sum[1] * invN; in algoUpdate()
110 state->this_batch_g[2] = state->this_batch_sample_sum[2] * invN; in algoUpdate()
136 state->this_batch_sample_sum[0] = 0; in algoUpdate()
137 state->this_batch_sample_sum[1] = 0; in algoUpdate()
138 state->this_batch_sample_sum[2] = 0; in algoUpdate()