Skip to content

Conversation

Williangalvani
Copy link
Member

@Williangalvani Williangalvani commented Feb 13, 2022

inspector

it needs a new icon and probably some comments in the code before it is ready to go in.

Them, later on, it should be upgraded to support plotting stuff.

Image is up at williangalvani/companion-core:mavlinkinspector

@Williangalvani Williangalvani changed the title WIP: create mavlink-inspector Create mavlink-inspector Feb 16, 2022
@Williangalvani Williangalvani marked this pull request as ready for review February 16, 2022 02:37
@Williangalvani
Copy link
Member Author

While this is not 100% ready, I think it is good and useful enough to go in as is, I intend to keep working on it with time, adding things like live plotting

Copy link
Collaborator

@ES-Alexander ES-Alexander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a fan - nice work! :-)
I reckon it would be useful to include the timestamps in the main list display of the messages, but that can be added later (and was that the thing that needed to be fixed in mavlink2rest first or something?)

Agreed that it's useful enough as-is that it's worth making available now, and improving as you/we have time later :-)

@@ -0,0 +1,33 @@
export default function prettify(message: any): string {
if (message.type === 'STATUSTEXT') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a problem to use switch case here ?
There is also the possibility yo create a Map<String, closure> to make the code more encapsulated, but both alternatives should work.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check it now

@patrickelectric patrickelectric merged commit 79d8c82 into bluerobotics:master Feb 17, 2022
@Williangalvani Williangalvani deleted the mavlink-inspector branch February 21, 2022 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants