From be0a3f4b3f536e9cad405d7307324914f3284740 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Fri, 18 May 2012 19:20:40 +0100 Subject: dom st maps + fixed over verbose debug --- domst.xml | 13 +++++++++++++ domst_grad.png | Bin 0 -> 42973 bytes wim.py | 6 +++--- 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 domst.xml create mode 100644 domst_grad.png diff --git a/domst.xml b/domst.xml new file mode 100644 index 0000000..90d84d8 --- /dev/null +++ b/domst.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/domst_grad.png b/domst_grad.png new file mode 100644 index 0000000..42b6783 Binary files /dev/null and b/domst_grad.png differ diff --git a/wim.py b/wim.py index e8f6c78..0db569d 100755 --- a/wim.py +++ b/wim.py @@ -92,7 +92,7 @@ while True: try: data, addr = insock.recvfrom(128) pos.parse(data) - if debug: + if debug==True: print "wim: received:",data posChanged=True except: @@ -108,7 +108,7 @@ while True: outsock.sendto( "gpsstatus 0\n", (PD_IP, PD_PORT) ) check=gpsp.check() if check!=False: - if debug: + if debug==True: print "wim: received from gps",check[0],check[1] pos=latLng(check[0],check[1]) posChanged=True @@ -117,7 +117,7 @@ while True: for layer in gpslayers: r=layer.checkcoord(pos) #returns a message or None if r!=None: - if (debug): + if debug==True: print "wim: sending:",str(r[0]),str(r[1]) #pd needs \n at end of message outsock.sendto( str(r[0])+' '+str(r[1])+'\n', (PD_IP, PD_PORT) ) -- cgit v1.2.3