node-mavlink 2.0.6 → 2.0.7
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/package.json +2 -2
- package/sanity-check.cjs +2 -1
- package/sanity-check.mjs +4 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "node-mavlink",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.7",
|
4
4
|
"author": "Matthias Hryniszak <padcom@gmail.com>",
|
5
5
|
"license": "LGPL",
|
6
6
|
"description": "MavLink definitions and parsing library",
|
@@ -22,7 +22,7 @@
|
|
22
22
|
"main": "dist/index.js",
|
23
23
|
"types": "dist/index.d.ts",
|
24
24
|
"dependencies": {
|
25
|
-
"mavlink-mappings": "^1.0.
|
25
|
+
"mavlink-mappings": "^1.0.20-20240131-0"
|
26
26
|
},
|
27
27
|
"scripts": {
|
28
28
|
"clean": "rm -rf dist lib/*.js",
|
package/sanity-check.cjs
CHANGED
@@ -17,7 +17,8 @@ parser.on('data', packet => {
|
|
17
17
|
const clazz = REGISTRY[packet.header.msgid]
|
18
18
|
if (clazz) {
|
19
19
|
const data = packet.protocol.data(packet.payload, clazz)
|
20
|
-
console.log(
|
20
|
+
console.log(packet.header)
|
21
|
+
console.log(data)
|
21
22
|
} else {
|
22
23
|
console.log(packet.debug())
|
23
24
|
}
|
package/sanity-check.mjs
CHANGED
@@ -19,6 +19,9 @@ parser.on('data', packet => {
|
|
19
19
|
const clazz = REGISTRY[packet.header.msgid]
|
20
20
|
if (clazz) {
|
21
21
|
const data = packet.protocol.data(packet.payload, clazz)
|
22
|
-
console.log(
|
22
|
+
console.log(packet.header)
|
23
|
+
console.log(data)
|
24
|
+
} else {
|
25
|
+
console.log(packet.debug())
|
23
26
|
}
|
24
27
|
})
|