Searched refs:impact_magnitude (Results 1 – 1 of 1) sorted by relevance
148 float impact_magnitude = sqrt(p->impact_accel_x * p->impact_accel_x + in dropEventFromNanoappPayload() local155 impact_magnitude < min_confidence_magnitude ? 0 : in dropEventFromNanoappPayload()156 impact_magnitude > max_confidence_magnitude ? 100 : in dropEventFromNanoappPayload()157 (impact_magnitude - min_confidence_magnitude) / in dropEventFromNanoappPayload()164 .accelPeak = static_cast<int32_t>(impact_magnitude * 1000), in dropEventFromNanoappPayload()