projects
/
wifihood
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add scale factor to speed up replaying
[wifihood]
/
wifimap
/
replay.py
diff --git
a/wifimap/replay.py
b/wifimap/replay.py
index
520a4dd
..
d40bfb6
100644
(file)
--- a/
wifimap/replay.py
+++ b/
wifimap/replay.py
@@
-17,6
+17,7
@@
class ReplayScanner ( gobject.GObject ) :
self._file = os.path.join( conf.homedir , "wiscan_gui.info" )
self._fd = None
self._current = None
self._file = os.path.join( conf.homedir , "wiscan_gui.info" )
self._fd = None
self._current = None
+ self._speed = 10
# Values to be set by GPSDevice changed events
self.info = None, 0, 0, None, None, None, None
# Values to be set by GPSDevice changed events
self.info = None, 0, 0, None, None, None, None
@@
-49,7
+50,7
@@
class ReplayScanner ( gobject.GObject ) :
next = self._fd.readline().split()
delta = float(next[0]) - float(self._current[0])
next = self._fd.readline().split()
delta = float(next[0]) - float(self._current[0])
- gobject.timeout_add( int(1000 * delta) , self.scan )
+ gobject.timeout_add( int(1000 / self._speed * delta) , self.scan )
self.info = self._current[1:8]
if self.info[0] == "FIX" :
self.info = self._current[1:8]
if self.info[0] == "FIX" :