@deeptrekker/api-domain 1.0.38-collisionavoidanceprototype.0 → 1.0.38-collisionavoidanceprototype.2
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.
|
@@ -776,13 +776,24 @@
|
|
|
776
776
|
"downError": {
|
|
777
777
|
"type": "string"
|
|
778
778
|
},
|
|
779
|
+
"downLatched": {
|
|
780
|
+
"type": "boolean"
|
|
781
|
+
},
|
|
779
782
|
"downState": {
|
|
780
783
|
"description": "\"unknown\" | \"outside\" | \"inside\"",
|
|
781
784
|
"type": "string"
|
|
782
785
|
},
|
|
786
|
+
"forceUnlock": {
|
|
787
|
+
"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.",
|
|
788
|
+
"type": "boolean"
|
|
789
|
+
},
|
|
783
790
|
"fwdError": {
|
|
784
791
|
"type": "string"
|
|
785
792
|
},
|
|
793
|
+
"fwdLatched": {
|
|
794
|
+
"description": "True when the axis reports \"inside\" because it latched - it saw an obstacle in the keep-out zone and has held that state through sensor data it cannot use - rather than because it can currently see the obstacle. Only a latched axis responds to forceUnlock.",
|
|
795
|
+
"type": "boolean"
|
|
796
|
+
},
|
|
786
797
|
"fwdState": {
|
|
787
798
|
"description": "\"unknown\" | \"outside\" | \"inside\"",
|
|
788
799
|
"type": "string"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const API_VERSION = "1.0.38-collisionavoidanceprototype.
|
|
1
|
+
export declare const API_VERSION = "1.0.38-collisionavoidanceprototype.2";
|
|
@@ -47,6 +47,16 @@ export type DistanceLock = {
|
|
|
47
47
|
setPoint?: number;
|
|
48
48
|
error?: string;
|
|
49
49
|
};
|
|
50
|
+
/**
|
|
51
|
+
* Which environment collision avoidance tunes its forward axis for.
|
|
52
|
+
*
|
|
53
|
+
* @group Devices
|
|
54
|
+
* @category ROV
|
|
55
|
+
*/
|
|
56
|
+
export declare enum CollisionAvoidanceEnvironment {
|
|
57
|
+
EnclosedSpace = "enclosedSpace",
|
|
58
|
+
OpenWater = "openWater"
|
|
59
|
+
}
|
|
50
60
|
/**
|
|
51
61
|
* Collision Avoidance
|
|
52
62
|
*
|
|
@@ -61,7 +71,32 @@ export type CollisionAvoidance = {
|
|
|
61
71
|
/** "unknown" | "outside" | "inside" */
|
|
62
72
|
fwdState?: string;
|
|
63
73
|
fwdError?: string;
|
|
74
|
+
/**
|
|
75
|
+
* True when the axis reports "inside" because it latched - it saw an obstacle in the
|
|
76
|
+
* keep-out zone and has held that state through sensor data it cannot use - rather
|
|
77
|
+
* than because it can currently see the obstacle. Only a latched axis responds to
|
|
78
|
+
* forceUnlock.
|
|
79
|
+
*/
|
|
80
|
+
fwdLatched?: boolean;
|
|
64
81
|
/** "unknown" | "outside" | "inside" */
|
|
65
82
|
downState?: string;
|
|
66
83
|
downError?: string;
|
|
84
|
+
downLatched?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Which environment the forward axis is tuned for: "enclosedSpace" or "openWater".
|
|
87
|
+
*
|
|
88
|
+
* Only the handling of low-confidence Echosounder returns differs. In an enclosed
|
|
89
|
+
* space a doubtful range is still a range off an awkward surface and is acted on; in
|
|
90
|
+
* open water, with nothing in range, the same returns arrive sporadically at arbitrary
|
|
91
|
+
* distances and are ignored. Stored in the BridgeBox's preferences, so it persists
|
|
92
|
+
* across restarts and applies to every client.
|
|
93
|
+
*/
|
|
94
|
+
environment?: CollisionAvoidanceEnvironment;
|
|
95
|
+
/**
|
|
96
|
+
* Write-only. Set true to force any axis currently latched INSIDE (holding that
|
|
97
|
+
* state through stale/unusable sensor data) back to unknown, so the next sensor
|
|
98
|
+
* reading re-determines its real state. Has no effect on an axis that is not
|
|
99
|
+
* latched. Never reported back by the backend.
|
|
100
|
+
*/
|
|
101
|
+
forceUnlock?: boolean;
|
|
67
102
|
};
|
|
@@ -1,2 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CollisionAvoidanceEnvironment = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Which environment collision avoidance tunes its forward axis for.
|
|
6
|
+
*
|
|
7
|
+
* @group Devices
|
|
8
|
+
* @category ROV
|
|
9
|
+
*/
|
|
10
|
+
var CollisionAvoidanceEnvironment;
|
|
11
|
+
(function (CollisionAvoidanceEnvironment) {
|
|
12
|
+
CollisionAvoidanceEnvironment["EnclosedSpace"] = "enclosedSpace";
|
|
13
|
+
CollisionAvoidanceEnvironment["OpenWater"] = "openWater";
|
|
14
|
+
})(CollisionAvoidanceEnvironment || (exports.CollisionAvoidanceEnvironment = CollisionAvoidanceEnvironment = {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deeptrekker/api-domain",
|
|
3
|
-
"version": "1.0.38-collisionavoidanceprototype.
|
|
3
|
+
"version": "1.0.38-collisionavoidanceprototype.2",
|
|
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": {
|