summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2012-05-05 21:29:34 +0100
committerTim Redfern <tim@eclectronics.org>2012-05-05 21:29:34 +0100
commit93c4c39a7f0493c786e4bd3f58ab795e8bbb97f2 (patch)
treea565c3f5425ae873bd174543346369da8df5531b
parent2190d8a81cc49229c87ebdad1a293c50d514697d (diff)
elusive gps issue
-rw-r--r--tomorrowthegroundGUI/tomorrowthegroundGUI.pde4
-rwxr-xr-xwim.py5
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
+