From 75194807f8d03bd0e26492ac139392f96bc6f96c Mon Sep 17 00:00:00 2001 From: aaeek2 Date: Fri, 2 Jan 2015 20:22:31 +0330 Subject: [PATCH] Update OrientationSensor.cpp --- services/sensorservice/OrientationSensor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/sensorservice/OrientationSensor.cpp b/services/sensorservice/OrientationSensor.cpp index 10b391cac391..dacb42be5c46 100644 --- a/services/sensorservice/OrientationSensor.cpp +++ b/services/sensorservice/OrientationSensor.cpp @@ -53,8 +53,8 @@ bool OrientationSensor::process(sensors_event_t* outEvent, g[0] += 360; *outEvent = event; - outEvent->orientation.azimuth = g.x; - outEvent->orientation.pitch = g.y; + outEvent->orientation.azimuth = g.y; + outEvent->orientation.pitch = g.x; outEvent->orientation.roll = g.z; outEvent->orientation.status = SENSOR_STATUS_ACCURACY_HIGH; outEvent->sensor = '_ypr';