Home | History | Annotate | Download | only in mlutils

Lines Matching defs:RMS

106                                                /* 0.4 dps-rms in LSB-rms     */
250 * the limit standard deviation (=~ RMS) set to assess whether
252 * The default is DEF_RMS_THRESH = 0.2 dps-rms.
312 * 9 If any of the RMS noise values is zero, it could be
334 float RMS[3];
496 /* 3rd, check RMS */
499 RMS[X] = 0.f, RMS[Y] = 0.f, RMS[Z] = 0.f;
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]);
506 if (RMS[j] > test_setup.rms_threshSq * total_count) {
507 MPL_LOGI("%s-Gyro RMS (%.2f) exceeded threshold "
509 a_name[j], sqrt(RMS[j] / total_count),
515 MPL_LOGI("RMS : %+13.3f %+13.3f %+13.3f (LSB-rms)\n",
516 sqrt(RMS[X] / total_count),
517 sqrt(RMS[Y] / total_count),
518 sqrt(RMS[Z] / total_count));
520 MPL_LOGI("RMS ^ 2 : %+13.3f %+13.3f %+13.3f\n",
521 RMS[X] / total_count,
522 RMS[Y] / total_count,
523 RMS[Z] / total_count);
526 if (RMS[X] == 0 || RMS[Y] == 0 || RMS[Z] == 0) {
527 /* If any of the RMS noise value returns zero,
852 float RMS[3];
926 /* accel RMS - for now the threshold is only indicative */
928 RMS[X] = 0.f, RMS[Y] = 0.f, RMS[Z] = 0.f;
931 RMS[X] += (vals[X] - x) * (vals[X] - x);
932 RMS[Y] += (vals[Y] - y) * (vals[Y] - y);
933 RMS[Z] += (vals[Z] - z) * (vals[Z] - z);
936 if (RMS[i] > accelRmsThresh * accelRmsThresh
938 MPL_LOGI("%s-Accel RMS (%.2f) exceeded threshold "
940 a_name[i], sqrt(RMS[i] / test_setup.accel_samples),
945 MPL_LOGI("RMS : %+13.3f %+13.3f %+13.3f (LSB-rms)\n",
946 sqrt(RMS[X] / DEF_N_ACCEL_SAMPLES),
947 sqrt(RMS[Y] / DEF_N_ACCEL_SAMPLES),
948 sqrt(RMS[Z] / DEF_N_ACCEL_SAMPLES));