You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by he...@apache.org on 2012/06/27 20:33:51 UTC
[13/20] ios commit: [CB-943] decrease accelerometer interval from
100ms to 40ms
[CB-943] decrease accelerometer interval from 100ms to 40ms
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/70c2f408
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/70c2f408
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/70c2f408
Branch: refs/heads/master
Commit: 70c2f4085d39c6f45cf483cca5ce90012f514ff8
Parents: 79c0943
Author: Fil Maj <ma...@gmail.com>
Authored: Thu Jun 21 19:06:20 2012 -0700
Committer: hermwong <he...@gmail.com>
Committed: Wed Jun 27 11:32:09 2012 -0700
----------------------------------------------------------------------
CordovaLib/Classes/CDVAccelerometer.m | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/70c2f408/CordovaLib/Classes/CDVAccelerometer.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVAccelerometer.m b/CordovaLib/Classes/CDVAccelerometer.m
index 8e821ab..3843bab 100644
--- a/CordovaLib/Classes/CDVAccelerometer.m
+++ b/CordovaLib/Classes/CDVAccelerometer.m
@@ -30,12 +30,8 @@
@synthesize callbackId, isRunning;
-// defaults to 100 msec
-#define kAccelerometerInterval 100
-// max rate of 40 msec
-#define kMinAccelerometerInterval 40
-// min rate of 1/sec
-#define kMaxAccelerometerInterval 1000
+// defaults to 10 msec
+#define kAccelerometerInterval 40
// g constant: -9.81 m/s^2
#define kGravitionalConstant -9.81