@deeptrekker/api-domain 1.0.2 → 1.0.4
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const API_VERSION = "1.0.
|
|
1
|
+
export declare const API_VERSION = "1.0.4";
|
|
@@ -57,7 +57,9 @@ export type TransferPayload<T> = {
|
|
|
57
57
|
/**
|
|
58
58
|
* Movement
|
|
59
59
|
*
|
|
60
|
-
* Represents a movement command with speed and position.
|
|
60
|
+
* Represents a movement command with speed and position. Only one movement command can be active at a time.
|
|
61
|
+
*
|
|
62
|
+
* **When position is the active command, the vehicle will target and hold that position until a velocity command is received**
|
|
61
63
|
*
|
|
62
64
|
* @category Controls
|
|
63
65
|
* @group X4
|
|
@@ -86,8 +86,9 @@ export type X4Thruster = {
|
|
|
86
86
|
};
|
|
87
87
|
/**
|
|
88
88
|
* The X4 drive command type.
|
|
89
|
-
* It includes properties for controlling the vehicle's movement in various directions (forward, lateral, vertical depth, roll, pitch, yaw).
|
|
89
|
+
* It includes properties for controlling the vehicle's movement in various directions (forward, lateral, vertical depth, roll, pitch, yaw). **The vehicle will disable all motors after 500ms if no commands are received.**
|
|
90
90
|
* It also includes options for coordinate type and reference frame. As the vehicle can be controlled in different coordinate systems, this type allows for flexibility in how commands are issued.
|
|
91
|
+
*
|
|
91
92
|
* @internal
|
|
92
93
|
* @alpha
|
|
93
94
|
* @group X4
|
|
@@ -265,6 +266,54 @@ export type X4Position = {
|
|
|
265
266
|
* @readonly
|
|
266
267
|
*/
|
|
267
268
|
heading?: number;
|
|
269
|
+
/**
|
|
270
|
+
* Indicates that a position for x has been set. Sending a velocity command for x will disable the lock.
|
|
271
|
+
*
|
|
272
|
+
* @readonly
|
|
273
|
+
*/
|
|
274
|
+
xLock?: boolean;
|
|
275
|
+
/**
|
|
276
|
+
* Indicates that a position for y has been set. Sending a velocity command for y will disable the lock.
|
|
277
|
+
*
|
|
278
|
+
* @readonly
|
|
279
|
+
*/
|
|
280
|
+
yLock?: boolean;
|
|
281
|
+
/**
|
|
282
|
+
* Indicates that a position for zDepth has been set. Sending a velocity command for zDepth will disable the lock.
|
|
283
|
+
*
|
|
284
|
+
* @readonly
|
|
285
|
+
*/
|
|
286
|
+
zDepthLock?: boolean;
|
|
287
|
+
/**
|
|
288
|
+
* Indicates that a position for zAltitude has been set. Sending a velocity command for zAltitude will disable the lock.
|
|
289
|
+
*
|
|
290
|
+
* @readonly
|
|
291
|
+
*/
|
|
292
|
+
zAltitudeLock?: boolean;
|
|
293
|
+
/**
|
|
294
|
+
* Indicates that a position for roll has been set. Sending a velocity command for roll will disable the lock.
|
|
295
|
+
*
|
|
296
|
+
* @readonly
|
|
297
|
+
*/
|
|
298
|
+
rollLock?: boolean;
|
|
299
|
+
/**
|
|
300
|
+
* Indicates that a position for pitch has been set. Sending a velocity command for pitch will disable the lock.
|
|
301
|
+
*
|
|
302
|
+
* @readonly
|
|
303
|
+
*/
|
|
304
|
+
pitchLock?: boolean;
|
|
305
|
+
/**
|
|
306
|
+
* Indicates that a position for yaw has been set. Sending a velocity command for yaw or a drive command for heading will disable the yaw lock.
|
|
307
|
+
*
|
|
308
|
+
* @readonly
|
|
309
|
+
*/
|
|
310
|
+
yawLock?: boolean;
|
|
311
|
+
/**
|
|
312
|
+
* Indicates that a position for heading has been set. Sending a velocity command for heading or a drive command for yaw will disable the heading lock.
|
|
313
|
+
*
|
|
314
|
+
* @readonly
|
|
315
|
+
*/
|
|
316
|
+
headingLock?: boolean;
|
|
268
317
|
};
|
|
269
318
|
/**
|
|
270
319
|
* The X4 tracked position type.
|
package/dist/utils/index.js
CHANGED
|
@@ -20,7 +20,7 @@ exports.payload = payload;
|
|
|
20
20
|
var ajv_1 = __importDefault(require("ajv"));
|
|
21
21
|
var ts_pattern_1 = require("ts-pattern");
|
|
22
22
|
var types_1 = require("../types");
|
|
23
|
-
exports.ajv = new ajv_1.default();
|
|
23
|
+
exports.ajv = new ajv_1.default({ allowUnionTypes: true });
|
|
24
24
|
/** Compiled JSON schema Validator */
|
|
25
25
|
var schema_json_1 = __importDefault(require("../constants/schema/schema.json"));
|
|
26
26
|
var Validator = exports.ajv.compile(schema_json_1.default);
|
package/package.json
CHANGED