Just-Pong / just-pong-android

Android client made in Kotlin using Android Studio
0 stars 0 forks source link

Implement vertical device movement measurement #1

Open voidlord opened 2 years ago

voidlord commented 2 years ago

Implement functions required to measure vertical movement of the device.

Implementation should use values provided by SensorAPI (https://developer.android.com/guide/topics/sensors/sensors_motion), and should return movement relative to Earth, instead of local.

Transformation formula needs to be researched.

voidlord commented 2 years ago

Research has concluded with two types of formulas to get the movement:

voidlord commented 2 years ago

Currently paused, waiting for https://github.com/Just-Pong/just-pong-android/issues/5 to solve

voidlord commented 2 years ago

https://github.com/Just-Pong/just-pong-android/issues/5 is partially concluded and should not hold back this ticket anymore.

voidlord commented 2 years ago

https://github.com/Just-Pong/just-pong-android/issues/1#issuecomment-1296201778 Further testing using a virtual device proved, that the first formula should be accurate enough.

BHunor commented 2 years ago

https://stackoverflow.com/questions/14574879/how-to-detect-movement-of-an-android-device

voidlord commented 1 year ago

https://stackoverflow.com/questions/14574879/how-to-detect-movement-of-an-android-device

This algorithm only detects movements, and doesn't convert data to Earth coordinates.