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
- Creating global Class holder
- Flutter + Dart: Editing name of a tab shows up a black screen
- android-pdf-viewer Received status code 401 from server: Unauthorized
- Sdk 34 WRITE_EXTERNAL_STORAGE not working
- ussd reader in Recket Native module
- Incorrect display of LinearGradientBrush in IOS
- The Binary Version Of its metadata is 1.8.0, expected Version is 1.6.0 build error
- I can't make TextInput to auto expand properly in Android
- Creating multiple instances of a class with different initializing values in Flutter
- How to create a lottie animation
- making android analyze with coverity sast tool
- Flutter plugin development android src not opening after opening example
- I initialize my ViewModel in the Activity with several fragments as tabs, but the fragments(tabs) return null for the updated livedata
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How I can use the shared preferences class?
Related Questions in IOS
- URLSession requesting JSON array from server not working
- Incorrect display of LinearGradientBrush in IOS
- Module not found when building flutter app for IOS
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- Expo Deep linking on iOS is not working (because of Google sign-in?)
- On iOS, the keyboard does not offer a 6-character SMS code
- Hi, there is an error happened when I build my flutter app, after I'm installing firebase packages occurs that error
- The copy/paste functionalities don't work only on iOS in the Flutter app
- Hide LiveActivityIntent Button from Shortcuts App
- While Running Github Actions Pipeline: No Signing Certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID
- Actionable notification api call not working in background
- Accessibility : Full keyboard access with scroll view in swiftui
- There is a problem with the request entity - You are not allowed to create 'iOS' profile with App ID 'XXXX'
- I am getting "binding has not yet been initialized" error when trying to connect firebase with flutter
Related Questions in ACCELEROMETER
- Wheel rotation frequency from accelerometer data
- Andriod phone accelerometer reading: native code vs. Android API
- Calculate Velocity from Accelerometer of Android Phone
- Buffersize to small
- Convert IMU data into trajectory data
- ERROR in rc_mpu_calibrate_accel_routine, center of fitted ellipsoids(in beagle bone blue)
- How to implement EKF (Extended Kalman filter) for INS GPS sensor fusion in a mobile application?
- Velocity from Accelerometer data
- Calculating pitch and roll from XYZ accelerometer data collected from a wildlife collar
- MC3635 convert Gs to delta and mux for interupt threshold
- problem with the Majwick filter when processing data from the gyroscope
- How to calculate device translation from accelerometer values?
- Extracting IMU sensitivity/accelerometer scale range in an app
- Accelerometer shows the same exact behavior as roll, pitch and yaw extracted from gyroscope
- Function for shaking the phone on the PWA mobile application
Related Questions in CMATTITUDE
- How can I find the initial CMAttitude to normalize subsequent queued device motion attitude pulls?
- Adjust Acceleration Data to Global Frame of Reference
- Absolute rotation rates
- How to initialize CMAttitude
- Is Sensor.TYPE_LINEAR_ACCELERATION in Android same as userAcceleration in IOS
- Get reference frame with y axis pointing to magnetic north
- Compass unstable when iPhone is vertical
- iOS Gyroscope normalization
- Absolute yaw on iOS device
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 # Hahtags
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