diff --git a/src/tools/parsers/JsDataflashParser b/src/tools/parsers/JsDataflashParser index 7fa1071..766c8e1 160000 --- a/src/tools/parsers/JsDataflashParser +++ b/src/tools/parsers/JsDataflashParser @@ -1 +1 @@ -Subproject commit 7fa1071e41762db6716291977721a58f28d29cae +Subproject commit 766c8e1ae39cd5f94d2da3bcd8c62c61c7d26e9e diff --git a/src/tools/parsers/parser.worker.js b/src/tools/parsers/parser.worker.js index 7952062..03a3a31 100644 --- a/src/tools/parsers/parser.worker.js +++ b/src/tools/parsers/parser.worker.js @@ -8,13 +8,16 @@ self.addEventListener('message', function (event) { if (event.data === null) { console.log('got bad file message!') } else if (event.data.action === 'parse') { + const data = event.data.file if (event.data.isTlog) { parser = new mavparser.MavlinkParser() + parser.processData(data) } else { parser = new DataflashParser(true) + parser.processData(data, ['CMD', 'MSG', 'FILE', 'MODE', 'AHR2', 'ATT', 'GPS', 'POS', + 'XKQ1', 'XKQ', 'NKQ1', 'NKQ2', 'XKQ2', 'PARM', 'MSG', 'STAT', 'EV', 'XKF4']) } - const data = event.data.file - parser.processData(data) + } else if (event.data.action === 'loadType') { if (!parser) { console.log('parser not ready')