This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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(); |