accelerometer

Detect Movement Accurately using Accelerometer in Android

不问归期 提交于 2019-12-03 07:45:57
问题 I am implementing a demo TIMER, with Vibration ( at a particular condition ), When I press start my timer starts running.. and when I stop it using stop button, it simply stops. Now I have to integrate a functionality, when the person shifts the device (while the Timer is running) , it should reset the timer. It is working pretty good, but the accelerometer functionality is not working absolutely accurate. It needs a fast jerk to reset the timer. Suggest me a good solution for the same. Here

How to correlate two time series with gaps and different time bases?

痞子三分冷 提交于 2019-12-03 07:20:32
问题 I have two time series of 3D accelerometer data that have different time bases (clocks started at different times, with some very slight creep during the sampling time), as well as containing many gaps of different size (due to delays associated with writing to separate flash devices). The accelerometers I'm using are the inexpensive GCDC X250-2. I'm running the accelerometers at their highest gain, so the data has a significant noise floor. The time series each have about 2 million data

Android Accelerometer moving ball

那年仲夏 提交于 2019-12-03 06:25:07
问题 i have done developed a sample application with the help of tutorials posted on web. my aim is to access the accelerometer and move a ball as per the phone orientation. i was successful to certail extent. But i have two isses the ball is going out of bound of the screen the ball movement is not smooth ( looks it disappears and re appears on the screen) here is my code. is there any change i need to do to get the smooth and exact movement of the ball as we see in lot of games. public class

How to measure the distance covered by iphone during free fall?

戏子无情 提交于 2019-12-03 06:18:51
问题 During the free fall the iphone is supposed to send acceleration values as 0 on all the three axis. So how to detect the distance covered by the iphone? 回答1: Do not trust Newton laws, they ignore air drag, Iphone rotation etc. Use empirical approach instead. Let the device fall from several heights like 1m, 2m, 5m, 10m, 30m... Repeat several times for each height. In each fall measure time. Approximate results by spline. Compute inverse function. 回答2: The most simple and naive implementation

Sensor fusion implemented on Android?

妖精的绣舞 提交于 2019-12-03 06:18:38
问题 I listened to this talk: http://www.youtube.com/watch?v=C7JQ7Rpwn2k which is Invensense Inc prototyping their "Sensor fusion" system, which is where they combine gyro, accelerometer, compass measurements in Android, to get better results. Is this currently implemented in any version of Android? The reason I ask is, part of sensor fusion is the "Gravity" sensor and the "Linear Acceleration" sensor, which ARE implemented in Android ever since API Level 9... makes me think that either 1) sensor

How to get accelerometer data in IOS?

我们两清 提交于 2019-12-03 06:09:49
I am using the UIAccelerotmeterDelegate method accelerometer:didAccelerate: but recently that method has been deprecated in iOS 5.0. So what is the alternative way to get the accelerometer data? The documentation does not mention the alternative we are supposed to use. You should use the Core Motion framework (introduced in iOS 4.0) as a substitue. Create an instance of CMMotionManager and tell it to startAccelerometerUpdatesToQueue:withHandler: , passing it an NSOperationQueue and a block that will be executed on the specified queue whenever new accelerometer data is available. Antonio MG It

Android: Accelerometer false detection

跟風遠走 提交于 2019-12-03 06:06:29
问题 I have a code snippet to detect accelerometer movements. It works some times by properly detecting slight movements, but sometimes it detects movements when I kept my device idle too. Are there any problems with built-in accelerometer detection on Android? I use an HTC G-1 device. My code snippet is below. How do I resolve it so I can detect small device movements but not detect anything when the device is idle? private static final int SHAKE_THRESHOLD = 50; public void onSensorChanged(int

How to improve accuracy of accelerometer and compass sensors?

梦想的初衷 提交于 2019-12-03 05:19:52
问题 i am creating an augmented reality app that simply visualices a textview when the phone is facing a Point of Interest (wich gps position is stored on the phone). The textview is painted on the point of interest location in the screen. It works ok, the problem is that compass and accelerometer are very "variant", and the textview is constantly moving up and down left and right because the innacuracy of the sensors. there is a way to solve it? 回答1: Our problem is same. I also had same problem

Calculating distance within a building

為{幸葍}努か 提交于 2019-12-03 05:19:51
问题 I started doing some thinking about creating an Android application that can be used within a corporate building to determine what room you are in. Obviously I'm thinking GPS and network locations wouldn't be accurate enough to accomplish this. (Not to mention the instability of GPS signal inside) I looked briefly into calculating distance via the accelerometer, but it is apparently highly volatile and leaves a large margin for error. I've also considered some sort of triangulation from

android accelerometer to measure speed

大憨熊 提交于 2019-12-03 04:49:21
im trying to make an speedometer using the accelerometer but for some reason the code is crashing can someone please tell me what is wrong and how to fix it thank you this is the red part in logcat: 05-14 13:03:55.826: INFO/ActivityManager(91): Start proc com.hanud.speedo for activity com.hanud.speedo/.speedometer: pid=2052 uid=10127 gids={} 05-14 13:03:56.806: DEBUG/AndroidRuntime(2052): Shutting down VM 05-14 13:03:56.806: WARN/dalvikvm(2052): threadid=1: thread exiting with uncaught exception (group=0x400207f0) 05-14 13:03:56.986: ERROR/AndroidRuntime(2052): FATAL EXCEPTION: main 05-14 13