Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/src/drivers/window_orientation/
Dwindow_orientation.c123 static bool isTiltAngleAcceptable(int rotation, int8_t tilt_angle) in isTiltAngleAcceptable() argument
125 return ((tilt_angle >= Tilt_Tolerance[rotation][0]) in isTiltAngleAcceptable()
126 && (tilt_angle <= Tilt_Tolerance[rotation][1])); in isTiltAngleAcceptable()
342 int8_t tilt_angle; in add_samples() local
410 tilt_angle = tilt_tmp; in add_samples()
411 addTiltHistoryEntry(now, tilt_angle); in add_samples()
418 if (isSwinging(now, tilt_angle)) { in add_samples()
425 if (tilt_angle <= TILT_OVERHEAD_ENTER) { in add_samples()
427 } else if (tilt_angle >= TILT_OVERHEAD_EXIT) { in add_samples()
433 } else if (fabsf(tilt_angle) > MAX_TILT) { in add_samples()
[all …]