speedandcurrent 1.7.9 → 1.7.10

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 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -338,8 +338,8 @@ module.exports = function (app) {
338
338
  MessageHandler.setMeta(app, plugin.id, "environment.current.drift", {units: "m/s", type: "number", description: "Speed of the current"});
339
339
  MessageHandler.setMeta(app, plugin.id, "environment.current.setTrue", { units: "rad", type: "number", description: "Direction of the current" });
340
340
  rawCurrent = new Polar(app, plugin.id, "current");
341
- rawCurrent.configureMagnitude("self.environment.current.drift");
342
- rawCurrent.configureAngle("self.environment.current.setTrue");
341
+ rawCurrent.configureMagnitude("environment.current.drift");
342
+ rawCurrent.configureAngle("environment.current.setTrue");
343
343
  rawCurrent.setMeta({ displayName: "Current", plane: "Ground" });
344
344
  rawCurrent.setAngleRange('0to2pi');
345
345
  smoothedCurrent = new PolarSmoother(rawCurrent, KalmanSmoother, { processVariance: 0.000001, measurementVariance: 0.01 }); // id auto-derived: 'current.smoothed'
@@ -352,8 +352,8 @@ module.exports = function (app) {
352
352
  // no current
353
353
  noCurrent = createSmoothedPolar({
354
354
  id: "noCurrent",
355
- pathMagnitude: "self.environment.current.drift",
356
- pathAngle: "self.environment.current.setTrue",
355
+ pathMagnitude: "environment.current.drift",
356
+ pathAngle: "environment.current.setTrue",
357
357
  subscribe: false,
358
358
  app,
359
359
  pluginId: plugin.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speedandcurrent",
3
- "version": "1.7.9",
3
+ "version": "1.7.10",
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": {