Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ggencoder

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ggencoder - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

15

lib/GG-AisEncode.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc