From 976eb0e348b36e876380fbad70f878c1ba294485 Mon Sep 17 00:00:00 2001 From: Anne van Rossum Date: Thu, 28 Feb 2013 10:30:22 +0100 Subject: [PATCH] Switch again --- server.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server.js b/server.js index b8650fb..bfe7bc2 100644 --- a/server.js +++ b/server.js @@ -159,10 +159,10 @@ function newConnectionHandler(socket){ var drone = getDrone(data.uav_id); drone = data; - var gps = utmtogps(drone.uav_x, drone.uav_y, 31); + var gps = utmtogps(drone.uav_y, drone.uav_x, 31); console.log(gps); - drone.uav_x = gps.longitude; - drone.uav_y = gps.latitude; + drone.uav_x = gps.latitude; + drone.uav_y = gps.longitude; // Wait 250ms, then write an answer to the client's socket setTimeout(function(){