diff options
Diffstat (limited to 'tomorrowthegroundGUI')
| -rw-r--r-- | tomorrowthegroundGUI/tomorrowthegroundGUI.pde | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tomorrowthegroundGUI/tomorrowthegroundGUI.pde b/tomorrowthegroundGUI/tomorrowthegroundGUI.pde index 29fe559..7c2cf6b 100644 --- a/tomorrowthegroundGUI/tomorrowthegroundGUI.pde +++ b/tomorrowthegroundGUI/tomorrowthegroundGUI.pde @@ -12,7 +12,7 @@ void setup() { bgmaps=new PImage[2]; sendIP="127.0.0.1"; - int map=2; + int map=3; switch (map) { case 1: bgmaps[0] = loadImage("gentmap.png"); @@ -65,7 +65,8 @@ void mouseDragged() y=mouseY; float fx=((float)mouseX)/width; float fy=((float)mouseY)/height; - udp.send(((fy*fh)+lat2)+","+((fx*fw)+lng1)+"\n",sendIP,5400); + udp.send(lat1-((fy*fh))+","+((fx*fw)+lng1)+"\n",sendIP,5400); + //println(lat1-((fy*fh))+","+((fx*fw)+lng1)); } } |
