result = check_sensor_api(GEOMAGNETIC_RV_RAW_DATA_EVENT, interval);
fprintf(fp, "Geomagnetic Rotation Vector - RAW_DATA_REPORT_ON_TIME - %d\n", result);
+ 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(TEMPERATURE_RAW_DATA_EVENT, interval);
fprintf(fp, "Temperature - RAW_DATA_REPORT_ON_TIME - %d\n", result);
printf("[linear_accel] ");
printf("[rotation_vector] ");
printf("[geomagnetic_rv] ");
+ printf("[gaming_rv] ");
printf("[light]\n");
printf("event:");
printf("[RAW_DATA_REPORT_ON_TIME]\n");
if (strcmp(str, "RAW_DATA_REPORT_ON_TIME") == 0)
return GEOMAGNETIC_RV_RAW_DATA_EVENT;
break;
+ case GAMING_RV_SENSOR:
+ if (strcmp(str, "RAW_DATA_REPORT_ON_TIME") == 0)
+ return GAMING_RV_RAW_DATA_EVENT;
+ break;
default:
return -1;
}
case GEOMAGNETIC_RV_SENSOR:
printf("Geomagnetic 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 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;
default:
return;
}
sensor_type = GEOMAGNETIC_RV_SENSOR;
event = GEOMAGNETIC_RV_RAW_DATA_EVENT;
}
+ else if (strcmp(argv[1], "gaming_rv") == 0) {
+ sensor_type = GAMING_RV_SENSOR;
+ event = GAMING_RV_RAW_DATA_EVENT;
+ }
else if (strcmp(argv[1], "light") == 0) {
sensor_type = LIGHT_SENSOR;
event = LIGHT_EVENT_LUX_DATA_REPORT_ON_TIME;