Skip to content

Conversation

@Cantonplas
Copy link
Contributor

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

@Cantonplas Cantonplas changed the title Fw 301/execute code gen on cmake Fw 301/execute code gen on cmake (Now working) Sep 1, 2025
Copy link
Contributor

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?

Copy link
Contributor Author

@Cantonplas Cantonplas Sep 13, 2025

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

Copy link
Contributor

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.

Copy link
Contributor

@jorgesg82 jorgesg82 left a 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

Copy link
Contributor

@oganigl oganigl left a 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.

Copy link
Contributor

@jdmarmen jdmarmen left a 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...")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
print("Board not found, exiting...")
print(f "Board {board} not found, exiting...")

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.

5 participants