Skip to content

Instantly share code, notes, and snippets.

@glebov21
glebov21 / KalmanFilterGps.cs
Created June 19, 2018 11:49
Kalman filter c# for Gps
/*
using:
private KalmanLatLong filter = new KalmanLatLong(1);
...
var latitude = Android.LocationInfo.GetLatitude();
var longitude = Android.LocationInfo.GetLongitude();
var accuracyGeoData = Android.LocationInfo.GetAccuracy();
filter.Process(latitude, longitude, accuracyGeoData, (long)AppConstants.TrackerUpdateTimeSec * 1000);
//Set filtered latLon
latitude = filter.get_lat();