Lines Matching refs:Avg
333 float Avg[3];
471 Avg[X] = .0f, Avg[Y] = .0f, Avg[Z] = .0f;
473 Avg[X] += 1.f * x[i] / tmp;
474 Avg[Y] += 1.f * y[i] / tmp;
475 Avg[Z] += 1.f * z[i] / tmp;
478 Avg[X], Avg[Y], Avg[Z]);
481 Avg[X] / adjGyroSens,
482 Avg[Y] / adjGyroSens,
483 Avg[Z] / adjGyroSens);
487 if (fabs(Avg[j]) > test_setup.bias_thresh) {
490 a_name[j], Avg[j], test_setup.bias_thresh);
501 RMS[X] += (x[i] - Avg[X]) * (x[i] - Avg[X]);
502 RMS[Y] += (y[i] - Avg[Y]) * (y[i] - Avg[Y]);
503 RMS[Z] += (z[i] - Avg[Z]) * (z[i] - Avg[Z]);
542 gyro_biases[X] = FLOAT_TO_SHORT(Avg[X]);
543 gyro_biases[Y] = FLOAT_TO_SHORT(Avg[Y]);
544 gyro_biases[Z] = FLOAT_TO_SHORT(Avg[Z]);
583 float Avg[3];
747 Avg[X] = .0f, Avg[Y] = .0f, Avg[Z] = .0f;
749 Avg[X] += 1.f * x[i] / tmp;
750 Avg[Y] += 1.f * y[i] / tmp;
751 Avg[Z] += 1.f * z[i] / tmp;
754 Avg[X], Avg[Y], Avg[Z]);
757 Avg[X] / adjGyroSens,
758 Avg[Y] / adjGyroSens,
759 Avg[Z] / adjGyroSens);
769 gyro_biases[X] = FLOAT_TO_SHORT(Avg[X]);
770 gyro_biases[Y] = FLOAT_TO_SHORT(Avg[Y]);
771 gyro_biases[Z] = FLOAT_TO_SHORT(Avg[Z]);
1209 lltmp = (long)gyro_biases[0] * 2 * test_setup.gyro_fs; /* x gyro avg */
1213 lltmp = (long)gyro_biases[1] * 2 * test_setup.gyro_fs; /* y gyro avg */
1217 lltmp = (long)gyro_biases[2] * 2 * test_setup.gyro_fs; /* z gyro avg */
1222 lltmp = (long)accel_biases[0] * 65536L / accelSens[0]; /* x accel avg */
1226 lltmp = (long)accel_biases[1] * 65536L / accelSens[1]; /* y accel avg */
1230 lltmp = (long)accel_biases[2] * 65536L / accelSens[2]; /* z accel avg */