Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add format command #106

Open
maksimdrachov opened this issue May 8, 2024 · 2 comments
Open

Add format command #106

maksimdrachov opened this issue May 8, 2024 · 2 comments

Comments

@maksimdrachov
Copy link
Member

I would like the following command:

yakut format zubax.low_level_io.Access

It prints out which format I should use to pass variables for this DSDL type.

@maksimdrachov
Copy link
Member Author

maksimdrachov commented Jul 25, 2024

This can be accomplished as follows

image

In order to use this with yakut, we need to wrap this statement with single quotes once more:

yakut call 125 uavcan.node.ExecuteCommand '{'command': 0, 'parameter': 'firmware.bin'}'

@pavel-kirienko
Copy link
Member

The form you're looking for is either JSON or YAML. For example:

>>> import json
>>> print(json.dumps(example_message))

Your example needs double quotes otherwise it won't work in some shells.

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

No branches or pull requests

2 participants