villoren / KalmanLocationManager

Android LocationManager that delivers location predictions based on a Kalman filter.
Other
269 stars 68 forks source link

Can you publish on jCenter? #2

Open 13rac1 opened 8 years ago

13rac1 commented 8 years ago

Great work on this!

Could you publish it as a library on jCenter? I know it's not necessary for use...

build.gradle:

dependencies {
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.villoren:kalmanlocationmanager:1.0.0'
}

With a simplified import:

import com.villoren.kalmanlocationmanager.KalmanLocationManager;

Thank you!

sirvon commented 8 years ago

@eosrei how has this library been working for you? Does it improve upon location updates?

thanks

13rac1 commented 8 years ago

@sirvon I have a project I want to use it for, but haven't worked on that recently. So, I cannot say yet.

villoren commented 8 years ago

@eosrei sure! I suppose the sample activity will not be included.

Things that I'd like to check before publishing it (but can't do immediately, due to tight deadlines coding for a living):

1) Check those new runtime permissions, and how to handle them (if rejected). They should be on the client side, affects only the sample activity.

2) Check if the math is ok, when calculating the residual covariance using Location.getAccuracy() during the update step here. Perhaps someone could chime in here.

villoren commented 8 years ago

@sirvon i wrote it mainly to have updates in fixed arbitrary intervals, unlike the sdk's which typically uses a one second interval. That's the improvement i have been looking for.

For instance: If i set the interval to 1/24 seconds, i can have a 'smooth' animation when displaying the location in a map.

And the other way around: Suppose i set it up to receive updates every 5 seconds. So, the filter is going to receive ~5 updates while i'm getting only 1 in that period. That one i'm receiving is more likely to represent my actual position than those raw 5 taken individually.

sirvon commented 8 years ago

ppl like you are priceless....ty for sharing this hidden gem!

villoren commented 8 years ago

@sirvon thank Student Dave for teaching the math!