Skip to content

Conversation

alan412
Copy link
Collaborator

@alan412 alan412 commented Jul 12, 2025

This includes all code to run our blockly code!!!

(I apologize for doing some other cleanup at the same time)

Changes to base classes as well as our code generator.

This only tests opmode and robot classes. It does not test mechanism generation.

@alan412 alan412 requested a review from lizlooney July 12, 2025 15:38
* toolbox.
*/
export const mechanism_class_blocks: toolboxItems.Block[] = [
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are these hardcoded? Can't we generate these blocks from json?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I just kept them like they were before. I don’t see any reason they can’t be json

export const robot_class_blocks: toolboxItems.Block[] = [
// TODO(lizlooney): Add one mrc_class_method_def blocks for each method in ther Robot class.
];
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are these hardcoded? Can't we generate these blocks from json?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Made them the same as the ones for opmode and mechanism. I don’t see a reason they couldn’t be json.

@lizlooney lizlooney merged commit 72d16e8 into wpilibsuite:main Jul 13, 2025
1 check passed
@alan412 alan412 deleted the pr_test_print branch July 21, 2025 13:12
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.

2 participants