pymavlink
pymavlink copied to clipboard
Fix Typescript generation to work with node-mavlink
While recently testing the typescript generation with the latest node-mavlink we found a number of issues. For example
- multi-line comments in the XML show up only as single line
- incorrect exports/imports
- other misc differences
This is now working with the current head of node-mavlink for us.
NOTE
Added in a helper utility method for generating a list of all messages for use with node-mavlink custom message support. This new exported function is generated in message-registry.ts
Also adjusted based on comments.
Just want to express my support for this contribution, as the current typescript generated library does not even work anymore. Me and my team would love to have this PR merged!
Hello, is there any repo maintainer willing to take the time to look at this PR? It's kind of a big deal for me to have it merged in the repo... Maybe @tridge ? (sorry for the mention but you are the only active repo admin I was able to find, as there's no list of collaborators)
@davidbuzz I think you are JS/TS guy, any opinion on this ?
Based upon feedback from this node-mavlink issue disscussion (https://github.com/ArduPilot/node-mavlink/issues/21) we have this working correctly with custom messages now. I've updated the PR description.
Hello, any news?
@davidbuzz Are you able to approve?
The changes this pr makes in the generator/javascript/ folder should NOT be merged... thats a different generator['javascript' vs 'typescript'], please remove them from this pr. As for the typescript changes, i cant comment, as i maintain the other one. ;-)
Thanks @davidbuzz - I'm not sure how those got in there, but I will revert those two file changes. Do you know who can review the typescript changes?
I dont know if we have a maintainer for 'typescript' bindings, but 'git blame' them to see whos made changes b4, or who created them in the first place... or failing that, convince the rest of us with testing evidence that its better.. ;-)
Thanks @davidbuzz - I'm not sure how those got in there, but I will revert those two file changes. Do you know who can review the typescript changes?
Ping @pascalgross - from 2019... if we don't get a response we'll probably just welcome you as the new typescript generator maintainer :-)