PathWeaver icon indicating copy to clipboard operation
PathWeaver copied to clipboard

Buttons to flip paths based on the field rather than the initial point.

Open ajcorey opened this issue 7 years ago • 3 comments

Two new buttons or replacements for flip-H and flip-V for flipping the paths based on the field rather than the initial point of the path.

Besides being useful for creating autos for different alliance sides, it would also eliminate the problem of paths not being able to flip should they be placed outside the field. Flipping or mirroring based on the field would keep everything that was in the field pre-flip, in the field.

ajcorey avatar Oct 07 '18 04:10 ajcorey

So the current way to achieve this is to flip the path and then drag the entire path into the new position. The reason we didn't immediately make the flip-H and flip-V version you propose is that the field isn't necessary symmetrical about those axis. The Power Up field for instance isn't symmetric about the X or Y axis and is only symmetric rotationally. So in just about every case you would be dragging the path anyway.

We will revisit this design decision.

gftabor avatar Oct 07 '18 17:10 gftabor

@ajcorey I think this is an acceptable answer or do you disagree?

jasondaming avatar Apr 02 '21 20:04 jasondaming

This option would make sense to have for this season, I think? Especially since it looks like you can't mirror a Trajectory in wpilibj, only rotate or translate. I guess you could do the math to figure out how to achieve a mirror using transform2d, but it would be a pain.

17acres avatar Mar 03 '23 04:03 17acres