Comparing version 0.1.8 to 0.1.9
@@ -40,3 +40,3 @@ /* | ||
this.PutInt (msg.mmsi ,8,30); | ||
var lat; var lon; var sog; var hdg; | ||
var lat; var lon; var sog; var hdg; var accuracy; | ||
@@ -79,2 +79,5 @@ switch (msg.aistype) { | ||
accuracy= parseInt (msg.accuracy); | ||
this.PutInt(accuracy, 60, 1 ); | ||
// move lat to integer and take care of negative value | ||
@@ -94,3 +97,3 @@ lon = parseInt (msg.lon * 600000); //Long 1/10000 minute | ||
this.PutInt (hdg, 124, 9 ); | ||
this.PutInt (60, 133, 6 ); // 60 [time stamp is not available] | ||
@@ -170,3 +173,3 @@ | ||
nmea [0] = '!AIVDM'; // ! is added after checksum | ||
nmea [1] = '1'; // ignore multipart extention messages | ||
nmea [1] = '1'; // ignore multipart extention messages | ||
nmea [2] = '1'; | ||
@@ -183,3 +186,7 @@ nmea [3] = ''; | ||
} | ||
var trailer= "*" + checksum.toString(16).toUpperCase(); | ||
var trailer; | ||
if (checksum < 16) trailer= "*0" + checksum.toString(16).toUpperCase(); | ||
else trailer= "*" + checksum.toString(16).toUpperCase(); | ||
this.nmea = paquet + trailer; | ||
@@ -186,0 +193,0 @@ this.valid= true; |
{ | ||
"name" : "ggencoder", | ||
"description" : "GEOGATE-geojson handles AIS/NMEA encoding/decoding for GEOgate GPS/AIS/GTS framework", | ||
"version" : "0.1.8", | ||
"version" : "0.1.9", | ||
"author" : { | ||
@@ -6,0 +6,0 @@ "name" : "Fulup Ar Foll", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
91449
1424