Searched refs:magnitude (Results 1 – 2 of 2) sorted by relevance
/device/google/contexthub/firmware/os/drivers/window_orientation/ |
D | window_orientation.c | 309 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()
|
/device/generic/goldfish/gnss/ |
D | GnssMeasurementInterface.cpp | 85 .magnitude = {0, 5000, 10000, 5000, 0, 0, 3000, 0}}; in makeGnssMeasurement() 91 .magnitude = {0, 3000, 5000, 3000, 0, 0, 1000, 0}}; in makeGnssMeasurement()
|