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

For custom commands, allow yakut to read a map file #91

Open
emrainey opened this issue Aug 8, 2023 · 1 comment
Open

For custom commands, allow yakut to read a map file #91

emrainey opened this issue Aug 8, 2023 · 1 comment

Comments

@emrainey
Copy link

emrainey commented Aug 8, 2023

The file could be yaml or json or ini, but would map commands in words to command numbers. It could be automatically read in from known location like a ~/.yakut/custom_commands.yaml

---
custom_commands:
    - number: 300
       name: foo
    - number: 301 
       name: bar

This would allow users to do:

yakut cmd X foo instead of yakut cmd X 300 which is not descriptive.

These could be also checked for duplicates and limits (like predefined values).

@pavel-kirienko
Copy link
Member

Do we want to consider the possibility of storing a JSON mapping in a string-typed register like uavcan.custom_commands directly on the node?

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