return;
m_time = get_timestamp();
-
gravity_event.sensor_id = get_id();
gravity_event.event_type = GRAVITY_RAW_DATA_EVENT;
if ((roll >= (M_PI/2)-DEVIATION && roll <= (M_PI/2)+DEVIATION) ||
}
m_time = get_timestamp();
-
orientation_event.sensor_id = get_id();
orientation_event.event_type = ORIENTATION_RAW_DATA_EVENT;
orientation_event.data.accuracy = SENSOR_ACCURACY_GOOD;
}
m_time = get_timestamp();
-
rv_event.sensor_id = get_id();
rv_event.event_type = GAMING_RV_RAW_DATA_EVENT;
rv_event.data.accuracy = SENSOR_ACCURACY_GOOD;
}
data.accuracy = SENSOR_ACCURACY_GOOD;
- data.timestamp = m_time;
+ data.timestamp = get_timestamp();
data.value_count = 4;
data.values[0] = quaternion_gaming_rv.m_quat.m_vec[1];
data.values[1] = quaternion_gaming_rv.m_quat.m_vec[2];
}
m_time = get_timestamp();
-
rv_event.sensor_id = get_id();
rv_event.event_type = GEOMAGNETIC_RV_RAW_DATA_EVENT;
rv_event.data.accuracy = SENSOR_ACCURACY_GOOD;
}
data.accuracy = SENSOR_ACCURACY_GOOD;
- data.timestamp = m_time;
+ data.timestamp = get_timestamp();
data.value_count = 4;
data.values[0] = quaternion_geo_rv.m_quat.m_vec[1];
data.values[1] = quaternion_geo_rv.m_quat.m_vec[2];
}
m_time = get_timestamp();
-
rv_event.sensor_id = get_id();
rv_event.event_type = ROTATION_VECTOR_EVENT_RAW_DATA_REPORT_ON_TIME;
rv_event.data.accuracy = SENSOR_ACCURACY_GOOD;
}
data.accuracy = SENSOR_ACCURACY_GOOD;
- data.timestamp = m_time;
+ data.timestamp = get_timestamp();
data.value_count = 4;
data.values[0] = quaternion_orientation.m_quat.m_vec[1];
data.values[1] = quaternion_orientation.m_quat.m_vec[2];