Lines Matching refs:test_setup
184 static tTestSetup test_setup = {
264 test_setup.gyro_sens = sensitivity;
265 test_setup.gyro_fs = (int)(32768.f / sensitivity);
266 test_setup.packet_thresh = p_thresh;
267 test_setup.total_timing_tol = total_time_tol;
268 test_setup.bias_thresh = bias_thresh;
269 test_setup.rms_threshSq = rms_thresh * rms_thresh;
270 test_setup.sp_shift_thresh = sp_shift_thresh;
271 test_setup.accel_samples = accel_samples;
397 tmp = (int)(test_setup.test_time_per_axis / 600);
423 if ( abs(packet_count - test_setup.packet_thresh)
425 test_setup.total_timing_tol * test_setup.packet_thresh) {
487 if (fabs(Avg[j]) > test_setup.bias_thresh) {
490 a_name[j], Avg[j], test_setup.bias_thresh);
506 if (RMS[j] > test_setup.rms_threshSq * total_count) {
510 sqrt(test_setup.rms_threshSq));
659 tmp = (int)(test_setup.test_time_per_axis / 600);
692 if (abs(packet_count - test_setup.packet_thresh)
694 test_setup.total_timing_tol * test_setup.packet_thresh) {
859 p_vals = (short*)inv_malloc(sizeof(short) * 3 * test_setup.accel_samples);
887 for(i = 0; i < test_setup.accel_samples; i++) {
892 x += 1.f * vals[X] / test_setup.accel_samples;
893 y += 1.f * vals[Y] / test_setup.accel_samples;
894 z += 1.f * vals[Z] / test_setup.accel_samples;
929 i < test_setup.accel_samples; i++) {
937 * test_setup.accel_samples) {
940 a_name[i], sqrt(RMS[i] / test_setup.accel_samples),
1139 adjGyroSens = test_setup.gyro_sens * mputestCfgPtr->gyro_sens_trim / 131.f;
1140 test_setup.gyro_fs = (int)(32768.f / adjGyroSens);
1208 /* NOTE : 2 * test_setup.gyro_fs == 65536 / (32768 / test_setup.gyro_fs) */
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 */