Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Catch the first satellite id in GSV

  • Loading branch information...
commit cb89fea087704bd7cbde2d64e2e21426af401be4 1 parent 493a4d0
@fphillips authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  nmea.js
View
2  nmea.js
@@ -91,7 +91,7 @@ exports.parsers = {
// $GPGSV,3,1,12, 05,58,322,36, 02,55,032,, 26,50,173,, 04,31,085,
var numRecords = (fields.length - 4) / 4,
sats = [];
- for (var i=1; i < numRecords; i++) {
+ for (var i=0; i < numRecords; i++) {
var offset = i * 4 + 4;
sats.push({id: fields[offset],
elevationDeg: +fields[offset+1],
Please sign in to comment.
Something went wrong with that request. Please try again.