diff options
| author | Tim Redfern <tim@eclectronics.org> | 2012-05-05 21:29:34 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2012-05-05 21:29:34 +0100 |
| commit | 93c4c39a7f0493c786e4bd3f58ab795e8bbb97f2 (patch) | |
| tree | a565c3f5425ae873bd174543346369da8df5531b | |
| parent | 2190d8a81cc49229c87ebdad1a293c50d514697d (diff) | |
elusive gps issue
| -rw-r--r-- | tomorrowthegroundGUI/tomorrowthegroundGUI.pde | 4 | ||||
| -rwxr-xr-x | 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"); @@ -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 + |
