@robotical/webapp-types 3.14.24 → 3.14.25

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.
@@ -23,6 +23,12 @@ declare class PublishedDataAnalyser extends EventEmitter {
23
23
  objectSense: Record<MartyState["objectSense"], string>;
24
24
  noiseSense: Record<MartyState["noiseSense"], string>;
25
25
  };
26
+ connectedSensors: {
27
+ colourSensor: boolean;
28
+ lightSensor: boolean;
29
+ objectSensor: boolean;
30
+ noiseSensor: boolean;
31
+ };
26
32
  constructor(marty: RAFT);
27
33
  subscribeToPublishedData(): void;
28
34
  unsubscribeFromPublishedData(): void;
@@ -50,6 +50,12 @@ var PublishedDataAnalyser = /** @class */ (function (_super) {
50
50
  detected: "noiseDetected",
51
51
  },
52
52
  };
53
+ _this.connectedSensors = {
54
+ colourSensor: false,
55
+ lightSensor: false,
56
+ objectSensor: false,
57
+ noiseSensor: false,
58
+ };
53
59
  _this.marty = marty;
54
60
  _this.martyState = {
55
61
  colourSensed: "unclear",
@@ -87,6 +93,10 @@ var PublishedDataAnalyser = /** @class */ (function (_super) {
87
93
  this.lightSenseDetection.detectLightSense(getLightSenseValues(lightSensor), this);
88
94
  noiseSensor &&
89
95
  this.noiseSenseDetection.detectNoiseSense(getNoiseSenseValue(noiseSensor), this);
96
+ this.connectedSensors.colourSensor = !!colourSensor;
97
+ this.connectedSensors.lightSensor = !!lightSensor;
98
+ this.connectedSensors.objectSensor = !!objectSensor || !!colourSensor;
99
+ this.connectedSensors.noiseSensor = !!noiseSensor;
90
100
  };
91
101
  PublishedDataAnalyser.prototype.setColourSensed = function (colour) {
92
102
  this.martyState.colourSensed = colour;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robotical/webapp-types",
3
- "version": "3.14.24",
3
+ "version": "3.14.25",
4
4
  "description": "Type definitions for the Application Manager",
5
5
  "main": "dist/application-manager.d.ts",
6
6
  "types": "dist/application-manager.d.ts",