Skip to content

Commit

Permalink
Update description
Browse files Browse the repository at this point in the history
  • Loading branch information
Anne van Rossum committed Mar 25, 2013
1 parent 6e8d4c3 commit 8e55b3b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{ "name" : "knockoutjs-express"
, "description" : "tutorial from learn.knockoutjs.com"
, "homepage" : "http://github.com/dscape/knockout.js.samples"
, "repository" : "git://github.com/dscape/knockout.js.samples"
{ "name" : "uav-console"
, "description" : "UAV console for FireSwarm"
, "homepage" : "http://www.dobots.nl"
, "repository" : "git://github.com/mrquincle/uav-console.git"
, "version" : "0.0.1"
, "author" : "Nuno Job <[email protected]> (http://nunojob.com)"
, "keywords" : ["knockoutjs", "knockout", "express", "expressjs"]
, "author" : "Anne van Rossum <[email protected]> (http://www.dobots.nl)"
, "keywords" : ["pakmanager", "coordinator", "express", "json-over-tcp"]
, "dependencies" : {"express": "2.4.x", "json-over-tcp": "0.3.1", "coordinator": "x", "pakmanager": "x"}
, "main" : "./server.js"
}
12 changes: 12 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ var express = require('express')
, app = module.exports = express.createServer()
, converter = require('coordinator')
, utmtogps = converter('utm', 'latlong')
, gpstoutm = converter('latlong', 'utm')
, jot = require('json-over-tcp')
;

Expand Down Expand Up @@ -222,12 +223,23 @@ function newConnectionHandler(socket){
});
};

function calcregion() {
var lat = 51;
var long = 4;
var utm = gpstoutm(lat, long, 31);
console.log("Easting: " + utm.easting);
console.log("Northing: " + utm.northing);
};

// Start listening
server.listen(cmdPort);

calcregion();

initialize();

process.on('uncaughtException', function(err) {

console.log(JSON.stringify(err));
});

Expand Down

0 comments on commit 8e55b3b

Please sign in to comment.