Skip to content

Commit 691f127

Browse files
committed
Added time to location after geohash real-time filter
1 parent b2c4475 commit 691f127

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Loggers/GeohashRTFilter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ public void filter(Location loc) {
156156
laLoc.setLatitude(lastApprovedGeoPoint.Latitude);
157157
laLoc.setLongitude(lastApprovedGeoPoint.Longitude);
158158
laLoc.setAltitude(loc.getAltitude()); //hack.
159+
laLoc.setTime(loc.getTime()); //hack2
159160
m_geoFilteredTrack.add(laLoc);
160161
currentGeoPoint.Latitude = currentGeoPoint.Longitude = 0.0;
161162
}

madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Services/KalmanLocationService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ public void onAccuracyChanged(Sensor sensor, int accuracy) {
511511
public void onLocationChanged(Location loc) {
512512

513513
if (loc == null) return;
514-
if (loc.isFromMockProvider()) return;
514+
// if (loc.isFromMockProvider()) return;
515515

516516
double x, y, xVel, yVel, posDev, course, speed;
517517
long timeStamp;

0 commit comments

Comments
 (0)