Skip to content

Commit

Permalink
update submodule aand set initial dataflash parsing messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Apr 11, 2024
1 parent 53a3662 commit 2b5aa4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/tools/parsers/JsDataflashParser
Submodule JsDataflashParser updated 1 files
+144 −69 parser.js
7 changes: 5 additions & 2 deletions src/tools/parsers/parser.worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 2b5aa4d

Please sign in to comment.