-
Notifications
You must be signed in to change notification settings - Fork 0
Fw 301/execute code gen on cmake (Now working) #54
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
base: main
Are you sure you want to change the base?
Conversation
…/HyperloopUPV-H8/template-project into FW-301/Execute_Code_gen_on_cmake
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.
Why is there a void .gitignore here?
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.
If you delete all the generated code and upload it to the repo the file will be deleted, and if the file is deleted the program crash. So adding a. gitignore makes it so that the file doesnt get deleted and still can be uploaded
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.
I still dont get the point.
jorgesg82
left a comment
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.
Add all generated code in a .gitignore
oganigl
left a comment
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.
For me looks good, I just looked over it.
jdmarmen
left a comment
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.
Great job, just one thing, as you already generate the function definitions for the callbacks in the orders I would also consider to generate the flag for each order. We always use those callbacks only to change the value of the flag, so rn the user also needs to define that flag and its also a repetitive thing, what do you think @jorgesg82 ?
| board_instance = BoardDescription(board, b,JSONpath) | ||
| globals()[board] = board_instance | ||
| else: | ||
| print("Board not found, exiting...") |
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.
| print("Board not found, exiting...") | |
| print(f "Board {board} not found, exiting...") |
Works correctly, now when you build the proyect it will create the packets and orders from your board.
You need to change the board name on the cmake tho