Jerrylum / path.jerryio

The best path editor in VRC for designing skills routes and generating path files.
https://path.jerryio.com
GNU General Public License v3.0
32 stars 14 forks source link

:sparkles: Add LemLib Odometry Code Generator v0.4.x #12

Closed sufferiing closed 10 months ago

sufferiing commented 10 months ago

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.

BattleCh1cken commented 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.

Jerrylum commented 10 months ago

Please fix the merge conflicts

SizzinSeal commented 10 months ago

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