-
Notifications
You must be signed in to change notification settings - Fork 31
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
AMC–BLDC: Add the copier for codegen #327
Conversation
Hi @sgiraz, You did a good job! I have only two small suggestions:
Then I don't agree with you about this idea completely :
I think it is better (from a maintainer and bug fixer point of view) to maintain the |
Hi @valegagge, as of now, the script is intended to be executed only on Windows, we may extend the compatibility to Ubuntu, but it may be a task for another issue, not for this one.
Yep I think is it. There are 2 things to consider:
|
Hi @valegagge, I applied the changes requested. Let me know if it's ok. |
Excellent!!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
- now it takes 3 args: - path to codegen source folder - path to model-based-design source folder (within icub-firmware) - path to directories.json
Ok, guys, I applied the changes suggested by @pattacini during the review meeting. Python3 copier.py <source> <destination> <path_to_directories_json>. Where:
After these changes, the |
Yep, my point was that, this way, the json file contains info that are independent from the particular user system and we will get around the risk of pushing system specific json files to the repo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is ok for me
What's new
Copier.py
script within theicub-firmware\emBODY\eBcode\arch-arm\mbd\utils
foldericub-firmware-models
icub-firmware-models
andicub-firmware
)Note
The proposal is that each board that may be affected by the generated code from Simulink should contain a copy of this copier with the dictionaries.json file properly updated.cc @pattacini