Jerusalem Compass is a sample android application which implements compass combined with GPS location facilities allowing to locate Jerusalem direction.
Compass code is based on https://github.com/iutinvg/compass
- better, correct graphics
- launch Android Studio
- select Open an existing Android Studio project
- select the project folder
- select menu Run -> Run 'app'
- http://stackoverflow.com/questions/12800982/accelerometer-with-low-passfilter-in-android
- http://developer.android.com/reference/android/hardware/Sensor.html#TYPE_ACCELEROMETER
- http://stackoverflow.com/questions/1884699/android-compass-noise-algorithm
- http://en.wikipedia.org/wiki/Low-pass_filter
- Find closest number in array using binary search https://www.geeksforgeeks.org/find-closest-number-array/