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.
- package/index.js +4 -4
- 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("
|
|
342
|
-
rawCurrent.configureAngle("
|
|
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: "
|
|
356
|
-
pathAngle: "
|
|
355
|
+
pathMagnitude: "environment.current.drift",
|
|
356
|
+
pathAngle: "environment.current.setTrue",
|
|
357
357
|
subscribe: false,
|
|
358
358
|
app,
|
|
359
359
|
pluginId: plugin.id,
|