Hi I was wondering if the readings you get from TYPE_LINEAR_ACCELERATION which are the accelerometer readings without gravity the equivalent of the readings you get from userAcceleration in IOS. From what I can see they are the accelerometer readings minus gravity but just want to make sure since Apple doesn't release any source code.
Is Sensor.TYPE_LINEAR_ACCELERATION in Android same as userAcceleration in IOS
963 Views Asked by aflofo At
1
There are 1 best solutions below
Related Questions in ANDROID
- Delay in loading Html Page(WebView) from assets folder in real android device
- MPAndroidChart method setWordWrapEnabled() not found
- Designing a 'new post' android activity
- Android :EditText inside ListView always update first item in the listview
- Android: Transferring Data via ContentIntent
- Wrong xml being inflated android
- AsyncTask Class
- Unable to receive extras in Android Intent
- Website zoomed out on Android default browser
- Square FloatingActionButton with Android Design Library
- Google Maps API Re-size
- Push toolbar content below statusbar
- Android FragmentPagerAdapter Circular listview
- Layout not shifting up when keyboard is open
- auDIO_OUTPUT_FLAG_FAST denied by client can't connect to localhost
Related Questions in IOS
- Overlapping UICollectionView in storyboard
- Cannot pod spec lint because of undeclared type errors
- Is the transactionReceipt data present in dataWithContentsOfURL?
- UIWebView Screen Fitting Issue
- ZXingObjC encoding issues
- iOS: None of the valid provisioning profiles allowed the specific entitlements
- How to hide "Now playing url" in control center
- CloudKit: Preventing Duplicate Records
- Slow performance on ipad erasing image
- Swift code with multiple NSDateFormatter - optimization
- iOS 8.3 Safari crashes on input type=file
- TTTTimeIntervalFormatter always returns strings in English
- How do I add multiple in app purchases in Swift Spritekit?
- Setup code for xibs in iOS. -awakFromNb:
- iOS Voice Over only reads out the title of any alert views
Related Questions in ACCELEROMETER
- Android accelerometer detect device lying still
- How can I use the Accelerometer for detecting jump in LibGDX?
- Get an accelerometer's device id(or monitor an accelerometer in the backbround) on WinRT
- How to get accurate speed from accelerometer on iOS?
- Android Sensor.TYPE_LINEAR_ACCELERATION reporting wrong values on Galaxy S5
- Windows Phone: how to manage shake events?
- how to use accelerometer sensor to detect and match two toy cars' collision
- iOS orientation estimation and heading error
- How to know if Android device is Flat on table
- How to save previous barometer value to compare it with current Fall Detection Android
- Swift Accelerometer keeps crashing with ScrollView
- iPhone Accelerometer forward,back,left,right
- To detect a fall
- Technique to measure distance from android app (between 0-60 mts)
- Accelerometer stops working/listening
Related Questions in CMATTITUDE
- iOS Gyroscope normalization
- Absolute yaw on iOS device
- How to initialize CMAttitude
- Get reference frame with y axis pointing to magnetic north
- Is Sensor.TYPE_LINEAR_ACCELERATION in Android same as userAcceleration in IOS
- Adjust Acceleration Data to Global Frame of Reference
- Compass unstable when iPhone is vertical
- Absolute rotation rates
- How can I find the initial CMAttitude to normalize subsequent queued device motion attitude pulls?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Yes, they are the same, as both of them measure the total acceleration minus gravity (i.e. the acceleration imparted on the device by the user).
One important thing to note is that the measurement units and the reference frames of iOS and Android are different. Android measures acceleration in m/s^2, while iOS measures in g's (roughly 9.81 m/s^2). The reference frames appear to be identical in the documentation (see links below), but iOS reference frame is in fact the opposite of Android reference frame. For instance, when the device is stationary on a table, iOS measures approximately -1.0 on the z axis, while Android measures approximately 9.81 m/s^2 (note that iOS value is negative and Android value is positive).
To convert iOS readings to the Android reference frame and measurement units, you can multiply iOS readings from all axes (x, y and z) by -g (roughly -9.81):
iOS docs: https://developer.apple.com/documentation/coremotion/getting_processed_device-motion_data/understanding_reference_frames_and_device_attitude
Android docs: https://developer.android.com/guide/topics/sensors/sensors_overview