diff options
Diffstat (limited to 'camera/SensorListener.cpp')
-rw-r--r-- | camera/SensorListener.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/camera/SensorListener.cpp b/camera/SensorListener.cpp index 45a278b..c86e867 100644 --- a/camera/SensorListener.cpp +++ b/camera/SensorListener.cpp @@ -51,11 +51,11 @@ static int sensor_events_listener(int fd, int events, void* data) float radius = 0; int tilt = 0, orient = 0; - CAMHAL_LOGVA("ACCELEROMETER EVENT"); - CAMHAL_LOGVB(" azimuth = %f pitch = %f roll = %f", - sen_events[i].vector.azimuth, - sen_events[i].vector.pitch, - sen_events[i].vector.roll); + CAMHAL_LOGSVA("ACCELEROMETER EVENT"); + CAMHAL_LOGSVB(" azimuth = %f pitch = %f roll = %f", + sen_events[i].vector.azimuth, + sen_events[i].vector.pitch, + sen_events[i].vector.roll); // see http://en.wikipedia.org/wiki/Spherical_coordinate_system#Cartesian_coordinates // about conversion from cartesian to spherical for orientation calculations radius = (float) sqrt(x * x + y * y + z * z); @@ -76,9 +76,9 @@ static int sensor_events_listener(int fd, int events, void* data) orient = 0; } listener->handleOrientation(orient, tilt); - CAMHAL_LOGVB(" tilt = %d orientation = %d", tilt, orient); + CAMHAL_LOGSVB(" tilt = %d orientation = %d", tilt, orient); } else if (sen_events[i].type == android::Sensor::TYPE_GYROSCOPE) { - CAMHAL_LOGVA("GYROSCOPE EVENT"); + CAMHAL_LOGSVA("GYROSCOPE EVENT"); } } } |