From 8b0146b2e2b87b3c9336fce54c1559620093768e Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sat, 5 May 2012 12:53:35 +0100 Subject: checking GUI --- tomorrowthegroundGUI/tomorrowthegroundGUI.pde | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tomorrowthegroundGUI') diff --git a/tomorrowthegroundGUI/tomorrowthegroundGUI.pde b/tomorrowthegroundGUI/tomorrowthegroundGUI.pde index ae035b1..f4966ac 100644 --- a/tomorrowthegroundGUI/tomorrowthegroundGUI.pde +++ b/tomorrowthegroundGUI/tomorrowthegroundGUI.pde @@ -5,10 +5,13 @@ int usemap; UDP udp; int x,y; float lat1,lng1,lat2,lng2,fw,fh; +String sendIP; + void setup() { bgmaps=new PImage[2]; + sendIP="192.168.10.176"; int map=2; switch (map) { case 1: @@ -54,7 +57,7 @@ void mouseDragged() y=mouseY; float fx=((float)mouseX)/width; float fy=((float)mouseY)/height; - udp.send(((fy*fh)+lat2)+","+((fx*fw)+lng1)+"\n","127.0.0.1",5400); + udp.send(((fy*fh)+lat2)+","+((fx*fw)+lng1)+"\n",sendIP,5400); } } -- cgit v1.2.3