speedandcurrent 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +4 -0
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -240,6 +240,9 @@ module.exports = function (app) {
240
240
 
241
241
 
242
242
  // current
243
+ // send metadata for current
244
+ MessageHandler.setMeta(app, plugin.id, "environment.current.drift", {units: "m/s", type: "number", description: "Speed of the current"});
245
+ MessageHandler.setMeta(app, plugin.id, "environment.current.setTrue", { units: "rad", type: "number", description: "Direction of the current" });
243
246
  rawCurrent = new Polar("current", "self.environment.current.drift", "self.environment.current.setTrue");
244
247
  rawCurrent.setDisplayAttributes({ label: "current", plane: "Ground" });
245
248
  rawCurrent.setAngleRange('0to2pi');
@@ -267,6 +270,7 @@ module.exports = function (app) {
267
270
  noCurrent.ySmoother.reset(0,0);
268
271
  PolarSmoother.send(app, plugin.id, [noCurrent]);
269
272
 
273
+
270
274
  // boat speed
271
275
  smoothedBoatSpeed = new SmoothedSpeedThroughWater(app, plugin.id, settings.boatSpeedSource, true, MovingAverageSmoother, smootherOptions, !settings.preventDuplication);
272
276
  rawBoatSpeed = smoothedBoatSpeed.polar;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speedandcurrent",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "A plugin that automatically corrects boat speed and calculates current and leeway using sensor fusion.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "kalman-filter": "^2.3.0",
31
- "signalkutilities": "^1.5.0"
31
+ "signalkutilities": "^1.5.1"
32
32
  },
33
33
  "files": [
34
34
  "index.js",