Closed sufferiing closed 10 months ago
I don't really know enough about the codebase to make relevant comments there, but I pulled down the PR and messed around with it for a bit. I think this idea is really cool, but it'd be nice to have some kind of option to like save to clipboard or something. The workflow I have right now is to save the file, open it, and then copy and paste the code from there anyway.
Basically just any way to get the generated code into my codebase faster would be great.
Please fix the merge conflicts
So, couple of things. Odom generator format should be V0.4, not V0.1. Reason for this is because odom generator output will only work for V0.4, not other (upcoming) versions.
The output does not provide code that compiles. It is missing the required timeout
parameter. For example
chassis.moveTo(x, y);
// should be
chassis.moveTo(x, y, timeout);
Timeout can just default to 5000
This is moved from #10
Add a format that exports just the coordinate points as LemLib odometry code, ignoring heading, speed, and interpolated points. The points are converted to be relative to the starting point (as is default in LemLib). The format export generates a series of moveTo calls that can be pasted directly into code.