Conversation
2026-Robot/.vscode/launch.json
Outdated
There was a problem hiding this comment.
you should add a launch configuration to this file to allow you to run the flutter app.
| class CommandBlock { | ||
| int? index; // Optional | ||
| String type; | ||
| List<String> commands; // types of commands |
There was a problem hiding this comment.
Should this be a list of command names? Or Command Objects?
There was a problem hiding this comment.
I was thinking command names so that the JSON just has the names and then the arguments of the different commands. Then the robot side knows what the command means and how to execute it.
| }); | ||
|
|
||
| // pathing commands with points | ||
| factory CommandBlock.withPoints({ |
There was a problem hiding this comment.
How do you plan to handle cases where there are other arguments that aren't points related?
There was a problem hiding this comment.
Generalized for arguments
| } | ||
|
|
||
| // If the command has points then get them | ||
| List<PointNode>? getPoints() { |
There was a problem hiding this comment.
Remember, points should be treated just like any other argument. Don't write specific methods for points. You should right general methods that handle any sort of arguments.
… switching, fixed point property editing, and bugs with command widgets solved.
Working on POC for the new pathing tool, initial PR test.