sensor_data_t orientation_data;
float pitch, roll, azimuth;
+ m_orientation_sensor->get_sensor_data(ORIENTATION_EVENT_RAW_DATA_REPORT_ON_TIME, orientation_data);
+
azimuth = orientation_data.values[0];
pitch = orientation_data.values[1];
roll = orientation_data.values[2];
if (event_type != GRAVITY_EVENT_RAW_DATA_REPORT_ON_TIME)
return -1;
- m_orientation_sensor->get_sensor_data(ORIENTATION_EVENT_RAW_DATA_REPORT_ON_TIME, orientation_data);
-
data.accuracy = SENSOR_ACCURACY_GOOD;
data.timestamp = get_timestamp();
if ((roll >= (M_PI/2)-DEVIATION && roll <= (M_PI/2)+DEVIATION) ||