@deeptrekker/api-domain 1.0.37 → 1.0.38-collisionavoidanceprototype.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.
- package/dist/constants/schema/schema.json +31 -0
- package/dist/constants/versions/index.d.ts +1 -1
- package/dist/constants/versions/index.js +1 -1
- package/dist/types/devices/peripherals/echosounder/index.d.ts +2 -1
- package/dist/types/devices/peripherals/echosounder/index.js +1 -0
- package/dist/types/devices/vehicles/rovDrive/index.d.ts +34 -0
- package/package.json +7 -8
|
@@ -766,6 +766,34 @@
|
|
|
766
766
|
},
|
|
767
767
|
"type": "object"
|
|
768
768
|
},
|
|
769
|
+
"CollisionAvoidance": {
|
|
770
|
+
"additionalProperties": false,
|
|
771
|
+
"description": "Collision Avoidance",
|
|
772
|
+
"properties": {
|
|
773
|
+
"active": {
|
|
774
|
+
"type": "boolean"
|
|
775
|
+
},
|
|
776
|
+
"downError": {
|
|
777
|
+
"type": "string"
|
|
778
|
+
},
|
|
779
|
+
"downState": {
|
|
780
|
+
"description": "\"unknown\" | \"outside\" | \"inside\"",
|
|
781
|
+
"type": "string"
|
|
782
|
+
},
|
|
783
|
+
"forceUnlock": {
|
|
784
|
+
"description": "Write-only. Set true to force any axis currently latched INSIDE (holding that state through stale/unusable sensor data) back to unknown, so the next sensor reading re-determines its real state. Has no effect on an axis that is not latched. Never reported back by the backend.",
|
|
785
|
+
"type": "boolean"
|
|
786
|
+
},
|
|
787
|
+
"fwdError": {
|
|
788
|
+
"type": "string"
|
|
789
|
+
},
|
|
790
|
+
"fwdState": {
|
|
791
|
+
"description": "\"unknown\" | \"outside\" | \"inside\"",
|
|
792
|
+
"type": "string"
|
|
793
|
+
}
|
|
794
|
+
},
|
|
795
|
+
"type": "object"
|
|
796
|
+
},
|
|
769
797
|
"CrawlerDrive": {
|
|
770
798
|
"additionalProperties": false,
|
|
771
799
|
"description": "Crawler drive",
|
|
@@ -2891,6 +2919,9 @@
|
|
|
2891
2919
|
"autoStabilization": {
|
|
2892
2920
|
"type": "boolean"
|
|
2893
2921
|
},
|
|
2922
|
+
"collisionAvoidance": {
|
|
2923
|
+
"$ref": "#/definitions/CollisionAvoidance"
|
|
2924
|
+
},
|
|
2894
2925
|
"depthLock": {
|
|
2895
2926
|
"type": "boolean"
|
|
2896
2927
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const API_VERSION = "1.0.
|
|
1
|
+
export declare const API_VERSION = "1.0.38-collisionavoidanceprototype.1";
|
|
@@ -11,7 +11,8 @@ export declare enum EchosounderError {
|
|
|
11
11
|
JUMP_IN_DISTANCE = "Distance Lock disabled. Large jump in distance",
|
|
12
12
|
ECHOSOUNDER_DISABLED = "Echosounder is disabled",
|
|
13
13
|
ECHOSOUNDER_REQUIRED = "Distance Lock requires Echosounder",
|
|
14
|
-
SENSOR_MISSING = "Distance Lock requires DVL and SensorPod"
|
|
14
|
+
SENSOR_MISSING = "Distance Lock requires DVL and SensorPod",
|
|
15
|
+
COLLISION_AVOIDANCE_ACTIVE = "Turn off Collision Avoidance to use Distance Lock"
|
|
15
16
|
}
|
|
16
17
|
/**
|
|
17
18
|
*
|
|
@@ -16,4 +16,5 @@ var EchosounderError;
|
|
|
16
16
|
EchosounderError["ECHOSOUNDER_DISABLED"] = "Echosounder is disabled";
|
|
17
17
|
EchosounderError["ECHOSOUNDER_REQUIRED"] = "Distance Lock requires Echosounder";
|
|
18
18
|
EchosounderError["SENSOR_MISSING"] = "Distance Lock requires DVL and SensorPod";
|
|
19
|
+
EchosounderError["COLLISION_AVOIDANCE_ACTIVE"] = "Turn off Collision Avoidance to use Distance Lock";
|
|
19
20
|
})(EchosounderError || (exports.EchosounderError = EchosounderError = {}));
|
|
@@ -34,6 +34,7 @@ export type RovDrive = {
|
|
|
34
34
|
motorsDisabled?: boolean;
|
|
35
35
|
stationHolding?: boolean;
|
|
36
36
|
distanceLock?: DistanceLock;
|
|
37
|
+
collisionAvoidance?: CollisionAvoidance;
|
|
37
38
|
};
|
|
38
39
|
};
|
|
39
40
|
/**
|
|
@@ -46,3 +47,36 @@ export type DistanceLock = {
|
|
|
46
47
|
setPoint?: number;
|
|
47
48
|
error?: string;
|
|
48
49
|
};
|
|
50
|
+
/**
|
|
51
|
+
* Collision Avoidance
|
|
52
|
+
*
|
|
53
|
+
* @remarks Toggling this mode toggles both forward and downward collision avoidance together,
|
|
54
|
+
* though the two axes are tracked and reported independently. Cannot be active at the same
|
|
55
|
+
* time as Distance Lock.
|
|
56
|
+
* @group Devices
|
|
57
|
+
* @category ROV
|
|
58
|
+
*/
|
|
59
|
+
export type CollisionAvoidance = {
|
|
60
|
+
active?: boolean;
|
|
61
|
+
/** "unknown" | "outside" | "inside" */
|
|
62
|
+
fwdState?: string;
|
|
63
|
+
fwdError?: string;
|
|
64
|
+
/**
|
|
65
|
+
* True when the axis reports "inside" because it latched - it saw an obstacle in the
|
|
66
|
+
* keep-out zone and has held that state through sensor data it cannot use - rather
|
|
67
|
+
* than because it can currently see the obstacle. Only a latched axis responds to
|
|
68
|
+
* forceUnlock.
|
|
69
|
+
*/
|
|
70
|
+
fwdLatched?: boolean;
|
|
71
|
+
/** "unknown" | "outside" | "inside" */
|
|
72
|
+
downState?: string;
|
|
73
|
+
downError?: string;
|
|
74
|
+
downLatched?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Write-only. Set true to force any axis currently latched INSIDE (holding that
|
|
77
|
+
* state through stale/unusable sensor data) back to unknown, so the next sensor
|
|
78
|
+
* reading re-determines its real state. Has no effect on an axis that is not
|
|
79
|
+
* latched. Never reported back by the backend.
|
|
80
|
+
*/
|
|
81
|
+
forceUnlock?: boolean;
|
|
82
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deeptrekker/api-domain",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.38-collisionavoidanceprototype.1",
|
|
4
4
|
"description": "A business domain of types and schemas that the Deep Trekker topside communicates with via an API.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"engines": {
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
"@knodes/typedoc-plugin-code-blocks": "^0.22.7",
|
|
38
38
|
"@types/lodash": "^4.14.182",
|
|
39
39
|
"@types/node": "^22.0.0",
|
|
40
|
-
"@typescript-eslint/eslint-plugin": "^6.1.0",
|
|
41
|
-
"@typescript-eslint/parser": "^6.1.0",
|
|
42
40
|
"@zamiell/typedoc-plugin-not-exported": "^0.2.0",
|
|
43
|
-
"eslint": "^8.45.0",
|
|
44
|
-
"eslint-config-prettier": "^8.8.0",
|
|
45
|
-
"eslint-plugin-unused-imports": "^3.0.0",
|
|
46
41
|
"prettier": "3.0.3",
|
|
47
42
|
"rimraf": "^3.0.2",
|
|
48
43
|
"semver-compare-cli": "^2.0.0",
|
|
49
44
|
"ts-json-schema-generator": "2.4.0",
|
|
45
|
+
"eslint": "^8.45.0",
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "^6.1.0",
|
|
47
|
+
"@typescript-eslint/parser": "^6.1.0",
|
|
48
|
+
"eslint-plugin-unused-imports": "^3.0.0",
|
|
49
|
+
"eslint-config-prettier": "^8.8.0",
|
|
50
50
|
"ts-node": "^10.8.1",
|
|
51
51
|
"tslib": "^2.4.0",
|
|
52
52
|
"typedoc": "^0.28.9",
|
|
@@ -62,7 +62,6 @@
|
|
|
62
62
|
"mkdirp": "^1.0.4",
|
|
63
63
|
"ts-pattern": "^4.3.0",
|
|
64
64
|
"ts-toolbelt": "^9.6.0",
|
|
65
|
-
"type-zoo": "^3.4.1"
|
|
66
|
-
"yarn": "^1.22.22"
|
|
65
|
+
"type-zoo": "^3.4.1"
|
|
67
66
|
}
|
|
68
67
|
}
|