Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/drivers/window_orientation/
Dwindow_orientation.c395 struct TripleAxisDataPoint *last_sample; in add_samples() local
415 last_sample = &mTask.last_filtered_sample; in add_samples()
425 x = alpha * (x - last_sample->x) + last_sample->x; in add_samples()
426 y = alpha * (y - last_sample->y) + last_sample->y; in add_samples()
427 z = alpha * (z - last_sample->z) + last_sample->z; in add_samples()
/device/google/contexthub/firmware/os/drivers/orientation/
Dorientation.c123 struct TripleAxisDataPoint last_sample[NUM_OF_RAW_SENSOR]; member
216 curr_sample = &mTask.last_sample[index]; in fillSamples()
277 mTask.last_sample[index] = *curr_sample; in fillSamples()