dji_srt_parser
Advanced tools
Comparing version 1.0.36 to 1.0.37
13
index.js
@@ -23,2 +23,3 @@ function DJI_SRT_Parser() { | ||
.replace(/,/g, '') | ||
.replace(/Â|°|(B0)/g, '') // For P4RTK: parasite characters emerged after imported using "express-fileupload" and the actual "readfile" function. | ||
.replace(/\:separator\:/g, ','); | ||
@@ -234,2 +235,14 @@ //Split others | ||
}; | ||
} else if (key.toUpperCase() === 'F_PRY') { | ||
interpretedI = { | ||
1: isNum(datum[1]) ? Number(datum[1]) : 'n/a', // For now, I don't know what the data means | ||
2: isNum(datum[0]) ? Number(datum[0]) : 'n/a', | ||
3: isNum(datum[2]) ? Number(datum[2]) : 'n/a' | ||
}; | ||
} else if (key.toUpperCase() === 'G_PRY') { | ||
interpretedI = { | ||
1: isNum(datum[1]) ? Number(datum[1]) : 'n/a', | ||
2: isNum(datum[0]) ? Number(datum[0]) : 'n/a', | ||
3: isNum(datum[2]) ? Number(datum[2]) : 'n/a' | ||
}; | ||
} else if (key.toUpperCase() === 'HOME') { | ||
@@ -236,0 +249,0 @@ interpretedI = { |
{ | ||
"name": "dji_srt_parser", | ||
"version": "1.0.36", | ||
"version": "1.0.37", | ||
"description": "Parses and interprets DJI's drones SRT metadata", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -86,5 +86,9 @@ # DJI_SRT_Parser | ||
## Contribution | ||
Please make your changes to the **dev** branch, so that automated tests can be run before merging to **master**. Also, if possible, provide tests for new functionality. | ||
## Acknowledgements/credits | ||
- [Juan Irache](https://github.com/JuanIrache) - Main developer | ||
- [Gastón](https://github.com/tatoz12) - Contributor | ||
- [Gastón Zalba](https://github.com/tatoz12) - Contributor |
347153
14
851
94