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

Added Boomerang code #35

Open Cavaire3D opened 4 months ago

Cavaire3D commented 4 months ago

This introduces a new format that generates boomerang code for xVecLib.

Screenshot_20240509_165921 Code exported: robo.set(59, -34); imu.set_rotation(270); ou.printCoords(); ou.moveToBoom( -59.924, -50.746, 347.5795700547434, 0.0672986800982153,5); ou.moveToBoom( -45.96, 36, 90, -0.12368406072104425,5);

Jerrylum commented 4 months ago

Is the library open source? Can I have the link of the repository?

Cavaire3D commented 4 months ago

Repository is https://codeberg.org/xVec/xVecLib Documentation (Work in Progress) is https://xvec.codeberg.page

Cavaire3D commented 4 months ago

This function is a boomerang controller implementation created using Boomerang controller. It is one of many methods provided by my library, all of which require a tuned PID controller and odometry.

The format calculates the lead by using the control that has the most impact to the segment (the one that is the furthest away) as the carrot point. It then calculates the lead by rearranging the equation.

The documentation for this method is unfinished, and will be posted https://xvec.codeberg.page/class_x_y_zv_lib_1_1_p_i_d_ab96f6a3edb6bccf97d240b3154b0110b.html#ab96f6a3edb6bccf97d240b3154b0110b when finished.

I will update the code now to use the requested logger.

Cavaire3D commented 3 months ago

I am still working on this PR, but testing has revealed a few major bugs that I am currently working out. I will push changes once I fix those bugs.