-
Notifications
You must be signed in to change notification settings - Fork 61
Automatic code generation for choreo #1298
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
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 don't have an opinion on the TypeScript implementation because I don't do webdev. However, I'm concerned about the added complexity and maintainability of this change. We already have to go through quite a few steps for schema upgrades, and this change adds more steps.
* This allows for modifying constants in choreo while keeping your robot code up-to-date. | ||
* DO NOT MODIFY this file yourself, as it is auto-generated. | ||
*/ | ||
public final class ChoreoConsts {`); |
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 suggest ChoreoRobotConfig.
Co-authored-by: Tyler Veness <[email protected]>
Co-authored-by: Tyler Veness <[email protected]>
Choreo can now generate java files containing constants and variables defined in the GUI.
I decided to make the PR off the main branch instead of shueja's frontend-refactor, as the changes to the rest of the code are pretty minimal and (IMHO) can be integrated easily.