Searched refs:tilt_angle (Results 1 – 1 of 1) sorted by relevance
123 static bool isTiltAngleAcceptable(int rotation, int8_t tilt_angle) in isTiltAngleAcceptable() argument125 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() local410 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 …]