From 93c4c39a7f0493c786e4bd3f58ab795e8bbb97f2 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sat, 5 May 2012 21:29:34 +0100 Subject: elusive gps issue --- tomorrowthegroundGUI/tomorrowthegroundGUI.pde | 4 ++-- wim.py | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tomorrowthegroundGUI/tomorrowthegroundGUI.pde b/tomorrowthegroundGUI/tomorrowthegroundGUI.pde index f4966ac..cf6d07a 100644 --- a/tomorrowthegroundGUI/tomorrowthegroundGUI.pde +++ b/tomorrowthegroundGUI/tomorrowthegroundGUI.pde @@ -11,8 +11,8 @@ String sendIP; void setup() { bgmaps=new PImage[2]; - sendIP="192.168.10.176"; - int map=2; + sendIP="127.0.0.1"; + int map=1; switch (map) { case 1: bgmaps[0] = loadImage("gentmap.png"); diff --git a/wim.py b/wim.py index 34da1a2..ce5c6ea 100755 --- a/wim.py +++ b/wim.py @@ -20,8 +20,9 @@ if len(sys.argv)<2: debug=False if len(sys.argv)>2: - if sys.argv[1]=="-D" or sys.argv[1]=="-d": + if sys.argv[2]=="-D" or sys.argv[2]=="-d": debug=True + print "wim.py: DEBUG mode" doc=xml2obj(open(sys.argv[1])) gpslayers=[] @@ -103,4 +104,4 @@ while True: print "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) ) - \ No newline at end of file + -- cgit v1.2.3