It's a big, big world out there and we don't want your robots getting lost, soooo...
The team is pleased to introduce everyone to the new GPS class for Johnny-Five. This class adds support for some of the most common GPS modules, receivers, breakouts and shields. It can report on current location, course, ground speed and satellite data. GPS is one of the first uses of firmata's brand new support for serial communication.
The following chip sets have been tested with the GPS class:
The following receiver modules have been tested with the GPS class:
The following breakouts have been tested with the GPS class:
GPS Example
var five = require("johnny-five");
var board = new five.Board();
board.on("ready", function() {
var gps = new five.GPS({
breakout: "ADAFRUIT_ULTIMATE_GPS",
pins: { rx: 11, tx: 10 }
});
// If latitude, longitude, course or speed change log it
gps.on("change", function() {
console.log("position");
console.log(" latitude : ", this.latitude);
console.log(" longitude : ", this.longitude);
console.log("--------------------------------------");
});
});
Please report any issues here.