[Tizen] fix acceleration wrong coordinates.

This commit is contained in:
Lee, Jae-Hong 2013-08-06 16:10:13 +09:00
parent 1acfca45b2
commit 5cc906f798
1 changed files with 2 additions and 2 deletions

View File

@ -103,8 +103,8 @@ void Accelerometer::OnDataReceived(SensorType sensorType, SensorData& sensorData
AccelerationSensorData& data = static_cast<AccelerationSensorData&>(sensorData);
AppLog("AccelerationSensorData x = %5.4f , y = %5.4f, z = %5.4f ", data.x,data.y,data.z);
_accelerationValue.x = -data.x;
_accelerationValue.y = -data.y;
_accelerationValue.x = data.y;
_accelerationValue.y = -data.x;
_accelerationValue.z = -data.z;
_accelerationValue.timestamp = data.timestamp;