mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
Revert "#1990 Ignores GPS positions with 0/0 latitude and longitude values."
This reverts commit 55b20c75c0.
This commit is contained in:
@@ -87,20 +87,17 @@ public class PlottableEntityHistory
|
||||
*/
|
||||
public void add(PlottableDecodeEvent event)
|
||||
{
|
||||
if(event.isValidLocation())
|
||||
TimestampedGeoPosition mostRecentPosition = getLatestPosition();
|
||||
TimestampedGeoPosition latest = new TimestampedGeoPosition(event.getLocation(), event.getTimeStart());
|
||||
|
||||
if(isUnique(latest, mostRecentPosition))
|
||||
{
|
||||
TimestampedGeoPosition mostRecentPosition = getLatestPosition();
|
||||
TimestampedGeoPosition latest = new TimestampedGeoPosition(event.getLocation(), event.getTimeStart());
|
||||
mCurrentEvent = event;
|
||||
mLocationHistory.add(0, latest);
|
||||
|
||||
if(isUnique(latest, mostRecentPosition))
|
||||
while(mLocationHistory.size() > MAX_LOCATION_HISTORY)
|
||||
{
|
||||
mCurrentEvent = event;
|
||||
mLocationHistory.add(0, latest);
|
||||
|
||||
while(mLocationHistory.size() > MAX_LOCATION_HISTORY)
|
||||
{
|
||||
mLocationHistory.remove(mLocationHistory.size() - 1);
|
||||
}
|
||||
mLocationHistory.remove(mLocationHistory.size() - 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user