From: Ramasamy Date: Mon, 16 Mar 2015 13:45:36 +0000 (+0530) Subject: Moving azimuth offset after rotation compensation X-Git-Tag: submit/tizen/20151218.070016~96 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e7d4b9ab7bf5eaa6ed2b679d4aacfc676e38b8ac;p=platform%2Fcore%2Fsystem%2Fsensord.git Moving azimuth offset after rotation compensation - moving computation of azimuth to range 0-360 after compensating for azimuth rotation. - initializing fusion sensor pointer. Change-Id: Ie13af01dd3e76f2a3dd0bc1f2ae68726bcf3073d --- diff --git a/src/orientation/orientation_sensor.cpp b/src/orientation/orientation_sensor.cpp index aee027a..b9291e8 100755 --- a/src/orientation/orientation_sensor.cpp +++ b/src/orientation/orientation_sensor.cpp @@ -63,6 +63,7 @@ orientation_sensor::orientation_sensor() : m_accel_sensor(NULL) , m_gyro_sensor(NULL) , m_magnetic_sensor(NULL) +, m_fusion_sensor(NULL) , m_time(0) { cvirtual_sensor_config &config = cvirtual_sensor_config::get_instance(); @@ -244,6 +245,10 @@ void orientation_sensor::synthesize(const sensor_event_t &event, vector