result = check_sensor_api(GAMING_RV_RAW_DATA_EVENT, interval);
fprintf(fp, "Gaming Rotation Vector - RAW_DATA_REPORT_ON_TIME - %d\n", result);
+ result = check_sensor_api(UNCAL_GYROSCOPE_SENSOR, interval);
+ fprintf(fp, "Uncal Gyro Sensor - RAW_DATA_REPORT_ON_TIME - %d\n", result);
+
result = check_sensor_api(TEMPERATURE_RAW_DATA_EVENT, interval);
fprintf(fp, "Temperature - RAW_DATA_REPORT_ON_TIME - %d\n", result);
case(GAMING_RV_SENSOR):
printf("Gaming Rv [%lld] [%6.6f] [%6.6f] [%6.6f] [%6.6f]\n\n", data.timestamp, data.values[0], data.values[1], data.values[2], data.values[3]);
break;
+ case(UNCAL_GYROSCOPE_SENSOR):
+ printf("Uncal gyro [%lld] [%6.6f] [%6.6f] [%6.6f] [%6.6f] [%6.6f] [%6.6f]\n\n", data.timestamp, data.values[0], data.values[1], data.values[2], data.values[3], data.values[4], data.values[5]);
+ break;
default:
return;
}
if (strcmp(str, "RAW_DATA_EVENT") == 0)
return GAMING_RV_RAW_DATA_EVENT;
break;
+ case UNCAL_GYROSCOPE_SENSOR:
+ if (strcmp(str, "RAW_DATA_EVENT") == 0)
+ return UNCAL_GYRO_RAW_DATA_EVENT;
+ break;
+
}
return -1;
}
case GAMING_RV_SENSOR:
printf("Gaming RV [%lld] [%6.6f] [%6.6f] [%6.6f] [%6.6f]\n", data->timestamp, data->values[0], data->values[1], data->values[2], data->values[3]);
break;
+ case UNCAL_GYROSCOPE_SENSOR:
+ printf("Uncal gyro [%lld] [%6.6f] [%6.6f] [%6.6f] [%6.6f] [%6.6f] [%6.6f]\n\n", data.timestamp, data.values[0], data.values[1], data.values[2], data.values[3], data.values[4], data.values[5]);
+ break;
+
default:
return;
}
printf("[geomagnetic_rv] ");
printf("[gaming_rv] ");
printf("[light]\n");
+ printf("[uncal_gyro]");
printf("event:");
printf("[RAW_DATA_EVENT]\n");
printf("-p: [polling]\n");
sensor_type = PROXIMITY_SENSOR;
event = PROXIMITY_CHANGE_STATE_EVENT;
}
+ else if (strcmp(argv[1], "uncal_gyro") == 0) {
+ sensor_type = UNCAL_GYROSCOPE_SENSOR;
+ event = UNCAL_GYRO_RAW_DATA_EVENT;
+ }
else {
usage();
}