@deeptrekker/api-domain 1.0.38-collisionavoidanceprototype.1 → 1.0.38-collisionavoidanceprototype.3
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,10 +776,17 @@
|
|
|
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
|
+
"environment": {
|
|
787
|
+
"$ref": "#/definitions/CollisionAvoidanceEnvironment",
|
|
788
|
+
"description": "Which environment the forward axis is tuned for: \"enclosedSpace\" or \"openWater\".\n\nOnly the handling of low-confidence Echosounder returns differs. In an enclosed space a doubtful range is still a range off an awkward surface and is acted on; in open water, with nothing in range, the same returns arrive sporadically at arbitrary distances and are ignored. Stored in the BridgeBox's preferences, so it persists across restarts and applies to every client."
|
|
789
|
+
},
|
|
783
790
|
"forceUnlock": {
|
|
784
791
|
"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
792
|
"type": "boolean"
|
|
@@ -787,6 +794,10 @@
|
|
|
787
794
|
"fwdError": {
|
|
788
795
|
"type": "string"
|
|
789
796
|
},
|
|
797
|
+
"fwdLatched": {
|
|
798
|
+
"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.",
|
|
799
|
+
"type": "boolean"
|
|
800
|
+
},
|
|
790
801
|
"fwdState": {
|
|
791
802
|
"description": "\"unknown\" | \"outside\" | \"inside\"",
|
|
792
803
|
"type": "string"
|
|
@@ -794,6 +805,14 @@
|
|
|
794
805
|
},
|
|
795
806
|
"type": "object"
|
|
796
807
|
},
|
|
808
|
+
"CollisionAvoidanceEnvironment": {
|
|
809
|
+
"description": "Which environment collision avoidance tunes its forward axis for.",
|
|
810
|
+
"enum": [
|
|
811
|
+
"enclosedSpace",
|
|
812
|
+
"openWater"
|
|
813
|
+
],
|
|
814
|
+
"type": "string"
|
|
815
|
+
},
|
|
797
816
|
"CrawlerDrive": {
|
|
798
817
|
"additionalProperties": false,
|
|
799
818
|
"description": "Crawler drive",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const API_VERSION = "1.0.38-collisionavoidanceprototype.
|
|
1
|
+
export declare const API_VERSION = "1.0.38-collisionavoidanceprototype.3";
|
|
@@ -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
|
*
|
|
@@ -72,6 +82,16 @@ export type CollisionAvoidance = {
|
|
|
72
82
|
downState?: string;
|
|
73
83
|
downError?: string;
|
|
74
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;
|
|
75
95
|
/**
|
|
76
96
|
* Write-only. Set true to force any axis currently latched INSIDE (holding that
|
|
77
97
|
* state through stale/unusable sensor data) back to unknown, so the next sensor
|
|
@@ -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.3",
|
|
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": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"dist/*"
|
|
13
13
|
],
|
|
14
14
|
"scripts": {
|
|
15
|
-
"build": "rimraf ./dist ./docs && yarn set-versions &&
|
|
15
|
+
"build": "rimraf ./dist ./docs && yarn set-versions && yarn schema && tsc && yarn docs && yarn copy-dist && yarn replace-code-blocks-css",
|
|
16
16
|
"schema": "ts-json-schema-generator --path src/types/schemas/index.ts --type __TransferPayload_BridgeBox -o src/constants/schema/schema.json",
|
|
17
17
|
"docs": "npx typedoc --options typedoc.json",
|
|
18
18
|
"set-versions": "node scripts/setVersions.js",
|