Skip to content

Commit

Permalink
Switch again
Browse files Browse the repository at this point in the history
  • Loading branch information
Anne van Rossum committed Feb 28, 2013
1 parent c0d0e94 commit 976eb0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(){
Expand Down

0 comments on commit 976eb0e

Please sign in to comment.