[prev in list] [next in list] [prev in thread] [next in thread]
List: gpsd-commit-watch
Subject: [Gpsd-commit-watch] r6882 - trunk
From: esr at BerliOS <esr () mail ! berlios ! de>
Date: 2009-12-21 1:43:45
Message-ID: 200912210143.nBL1hj0V007256 () sheep ! berlios ! de
[Download RAW message or body]
Author: esr
Date: 2009-12-21 02:43:44 +0100 (Mon, 21 Dec 2009)
New Revision: 6882
Modified:
trunk/xgps
Log:
Make the entry-aging logic in the AIS display actually work.
Modified: trunk/xgps
===================================================================
--- trunk/xgps 2009-12-20 23:57:19 UTC (rev 6881)
+++ trunk/xgps 2009-12-21 01:43:44 UTC (rev 6882)
@@ -191,7 +191,8 @@
mmsi = self.name_to_mmsi[name]
if self.named[mmsi].entry_time < time.time() - AISView.DWELLTIME:
del self.named[mmsi]
- del name_to_mmsi[name]
+ del self.name_to_mmsi[name]
+ self.store.remove(here)
def latlon(self, lat, lon):
"Latitude/longitude display in nice format."
@@ -219,6 +220,7 @@
if ais.type in (1, 2, 3):
#print "CNB", ais.mmsi
if ais.mmsi in self.named:
+ #print "MMSI match"
for i in range(len(self.store)):
here = self.store.get_iter(i)
name = self.store.get_value(here, 1)
@@ -227,7 +229,7 @@
latlon = self.latlon(ais.lat, ais.lon)
self.store.set_value(here, 4, latlon)
elif ais.type == 5:
- print "Ship", ais.mmsi
+ #print "Ship", ais.mmsi
self.enter(ais, ais.shipname)
self.store.prepend(
(ais.type, ais.shipname, ais.callsign, ais.destination, ""))
_______________________________________________
Gpsd-commit-watch mailing list
Gpsd-commit-watch@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/gpsd-commit-watch
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic