nmea0183-signalk
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -55,5 +55,7 @@ /* | ||
var speed = 0.0; | ||
var note = "VTG - no notes"; | ||
if(this.float(values[6]) > 0 && String(values[7]).toUpperCase() === 'K') { | ||
speed = this.transform(values[6], 'kph', 'ms'); | ||
note = "VTG - Transformed " + values[6] + " (" + String(values[7]).toUpperCase() + ") to " + speed + " m/s."; | ||
} | ||
@@ -63,2 +65,3 @@ | ||
speed = this.transform(values[6], 'knots', 'ms'); | ||
note = "VTG - Transformed " + values[4] + " (" + String(values[5]).toUpperCase() + ") to " + speed + " m/s."; | ||
} | ||
@@ -68,6 +71,7 @@ | ||
courseOverGroundMagnetic: this.float(values[2]), | ||
courseOverGroundTrue: this.float(values[1]), | ||
courseOverGroundTrue: this.float(values[0]), | ||
speedOverGround: speed, | ||
timestamp: this.timestamp(), | ||
source: this.source() | ||
source: this.source(), | ||
notes: note | ||
}; | ||
@@ -74,0 +78,0 @@ |
{ | ||
"name": "nmea0183-signalk", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"description": "NMEA0183 to Signal K parser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
72488
1778