@vention/machine-logic-ui-sdk 0.16.1 → 0.18.0
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.esm.js +1 -1
- package/package.json +1 -1
- package/src/lib/mqtt/mqtt-types.d.ts +12 -5
package/index.esm.js
CHANGED
|
@@ -2575,7 +2575,7 @@ const MqttProvider = props => {
|
|
|
2575
2575
|
var MqttSandingTopics;
|
|
2576
2576
|
(function (MqttSandingTopics) {
|
|
2577
2577
|
MqttSandingTopics["SET_APP_STATE"] = "sandingMachineApp/setAppState";
|
|
2578
|
-
MqttSandingTopics["
|
|
2578
|
+
MqttSandingTopics["STATION_CALIBRATION_STATE"] = "sandingMachineApp/state/stationCalibration";
|
|
2579
2579
|
MqttSandingTopics["STATE_APP"] = "sandingMachineApp/state/app";
|
|
2580
2580
|
MqttSandingTopics["STATE_ROBOT"] = "sandingMachineApp/state/robot";
|
|
2581
2581
|
MqttSandingTopics["STATE_STATION"] = "sandingMachineApp/state/station";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare enum MqttSandingTopics {
|
|
2
2
|
SET_APP_STATE = "sandingMachineApp/setAppState",
|
|
3
|
-
|
|
3
|
+
STATION_CALIBRATION_STATE = "sandingMachineApp/state/stationCalibration",
|
|
4
4
|
STATE_APP = "sandingMachineApp/state/app",
|
|
5
5
|
STATE_ROBOT = "sandingMachineApp/state/robot",
|
|
6
6
|
STATE_STATION = "sandingMachineApp/state/station",
|
|
@@ -9,12 +9,18 @@ export declare enum MqttSandingTopics {
|
|
|
9
9
|
GET_INITIAL_STATE = "sandingMachineApp/getInitialState",
|
|
10
10
|
NOTIFICATION_MESSAGES = "sandingMachineApp/notification/messages"
|
|
11
11
|
}
|
|
12
|
-
export type SandingApplicationState = "
|
|
13
|
-
export type SandingRobotState = "
|
|
12
|
+
export type SandingApplicationState = "STOP" | "START" | "HOME" | "FREEDRIVE" | "STOPPING" | "FAULT" | "CALIBRATING_LASER" | "CALIBRATING_STATION";
|
|
13
|
+
export type SandingRobotState = "FAULT" | "READY";
|
|
14
14
|
type MqttSetAppStatePayload = {
|
|
15
15
|
state: SandingApplicationState;
|
|
16
16
|
};
|
|
17
|
-
type
|
|
17
|
+
export type StationCalibrationState = "completed" | "calibrating" | "incomplete";
|
|
18
|
+
export type MqttStationCalibrationStatePayload = {
|
|
19
|
+
station1: StationCalibrationState;
|
|
20
|
+
station2: StationCalibrationState;
|
|
21
|
+
station3: StationCalibrationState;
|
|
22
|
+
station4: StationCalibrationState;
|
|
23
|
+
};
|
|
18
24
|
type MqttRobotStatePayload = {
|
|
19
25
|
state: SandingRobotState;
|
|
20
26
|
};
|
|
@@ -22,6 +28,7 @@ export type StationState = {
|
|
|
22
28
|
completedSteps: number;
|
|
23
29
|
totalSteps: number;
|
|
24
30
|
isActive: boolean;
|
|
31
|
+
status: "waitingForPanel" | "inProgress" | "ready" | "complete";
|
|
25
32
|
isVacuumActivated: boolean;
|
|
26
33
|
isPanelInPlace: boolean;
|
|
27
34
|
};
|
|
@@ -43,7 +50,7 @@ export type MqttNotificationPayload = {
|
|
|
43
50
|
};
|
|
44
51
|
type MqttPayloadMapping = {
|
|
45
52
|
[MqttSandingTopics.SET_APP_STATE]: MqttSetAppStatePayload;
|
|
46
|
-
[MqttSandingTopics.
|
|
53
|
+
[MqttSandingTopics.STATION_CALIBRATION_STATE]: MqttStationCalibrationStatePayload;
|
|
47
54
|
[MqttSandingTopics.STATE_APP]: MqttSetAppStatePayload;
|
|
48
55
|
[MqttSandingTopics.STATE_ROBOT]: MqttRobotStatePayload;
|
|
49
56
|
[MqttSandingTopics.STATE_STATION]: MqttStationStatePayload;
|