summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonghun Park <jh718.park@samsung.com>2013-09-06 22:50:29 +0900
committerJoonghun Park <jh718.park@samsung.com>2013-09-06 22:51:20 +0900
commit80756169f4cbb29c40a245edfff4fc775df88789 (patch)
tree7de25c338ea157de16817ca9650613348df45305
parent92c5f9db292710ccb8d9c4ea4fac05dbdc5db17f (diff)
downloadDeviceMotionCapture-80756169f4cbb29c40a245edfff4fc775df88789.tar.gz
DeviceMotionCapture-80756169f4cbb29c40a245edfff4fc775df88789.tar.bz2
DeviceMotionCapture-80756169f4cbb29c40a245edfff4fc775df88789.zip
[title] revise threshold value for triggering sound because of emulator virtual sensor configuration charactor
[issue#] N_SE-51440 [problem] because of the virtual emulator sensor operation configuration, this issue is inevitable [solve] revise threshold values to make a detour Change-Id: I630a57d67338449ba6151703c663ec306598ed3e
-rwxr-xr-xjs/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/main.js b/js/main.js
index 6789568..97292b2 100755
--- a/js/main.js
+++ b/js/main.js
@@ -50,7 +50,7 @@ function deviceMotionEvents() {
}
function playSoundHandler(e) {
- if(e.acceleration.x > 7 || e.acceleration.y > 7 || e.acceleration.x < -7 || e.acceleration.y < -7){
+ if(e.acceleration.x > 6.2 || e.acceleration.y > 6.3 || e.acceleration.x < -6.2 || e.acceleration.y < -6.2){
audioElem.currentTime = 0;
audioElem.volume=1;
audioElem.play();