Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/drivers/window_orientation/
Dwindow_orientation.c309 static bool isAccelerating(float magnitude) in isAccelerating() argument
311 return ((magnitude < MIN_ACCELERATION_MAGNITUDE) in isAccelerating()
312 || (magnitude > MAX_ACCELERATION_MAGNITUDE)); in isAccelerating()
392 float x, y, z, alpha, magnitude; in add_samples() local
449 magnitude = sqrtf(x * x + y * y + z * z); in add_samples()
451 if (magnitude < NEAR_ZERO_MAGNITUDE) { in add_samples()
457 if (isAccelerating(magnitude)) { in add_samples()
468 tilt_tmp = (int)(asinf(z / magnitude) * RADIANS_TO_DEGREES); in add_samples()