Skip to content

reversing the path as parameter#15

Open
redto0 wants to merge 1 commit into
masterfrom
redtoodev
Open

reversing the path as parameter#15
redto0 wants to merge 1 commit into
masterfrom
redtoodev

Conversation

@redto0
Copy link
Copy Markdown
Member

@redto0 redto0 commented May 12, 2026

basically we want to reverse the path so it starts form the top instead of form the bottom so we find the interception point farthest from the robot instead of the closest one!

a bunch of files where changed by the reformat command though so dont worry about it too much

@redto0 redto0 requested a review from andyblarblar May 12, 2026 22:00
Copy link
Copy Markdown
Member

@andyblarblar andyblarblar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code seems fine, is this solving the situation where the lookahead matches two points, and you want to use the further of the two? Like when the kart is significantly to the left of the path it avoids it taking a super tight arc.

Otherwise if you just want far points you can tune the lookahead and k

@redto0
Copy link
Copy Markdown
Member Author

redto0 commented May 16, 2026

@andyblarblar yes avoiding the issue of the path having two intersections was the point that was precisely

@andyblarblar
Copy link
Copy Markdown
Member

Nice, LGTM then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants