From 2b5aa4d04d6dac96c1f236b4d49cd1c1c6c8d167 Mon Sep 17 00:00:00 2001 From: Willian Galvani Date: Thu, 11 Apr 2024 16:27:45 -0300 Subject: [PATCH] update submodule aand set initial dataflash parsing messages --- src/tools/parsers/JsDataflashParser | 2 +- src/tools/parsers/parser.worker.js | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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')