We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fed743 commit 18d34e2Copy full SHA for 18d34e2
Chat/MAVLink/mavlink_store.js
@@ -46,6 +46,22 @@ class MAVLinkMessageStore {
46
return this.store[sysid][compid][msgid];
47
}
48
49
+ find_message_by_name(name, sysid = this.sysid_default, compid = this.compid_default) {
50
+ if (!this.store[sysid] || !this.store[sysid][compid]) {
51
+ return null;
52
+ }
53
+
54
+ for (let id in this.store[sysid][compid]) {
55
+ const msg = this.store[sysid][compid][id];
56
+ if (msg._name === name) {
57
+ return msg;
58
59
60
61
62
63
64
65
// get available message names. returns an array of message names
66
// or null if no messages are available
67
get_available_message_names(sysid = this.sysid_default, compid = this.compid_default) {
0 commit comments