Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: multitool headland turn #3500

Merged
merged 1 commit into from
Oct 5, 2024
Merged

fix: multitool headland turn #3500

merged 1 commit into from
Oct 5, 2024

Conversation

pvaiko
Copy link
Contributor

@pvaiko pvaiko commented Oct 5, 2024

In Course:enrichWaypointData(), always use the non-offset position of the waypoints. This fixes issues when rerunning enrichWaypointData() on a course with offset.

Also, it wasn't correct in the first place, this is a chicken-egg problem, since the offset calculation is based on the dx/dz values which at the first run of enrichWaypointData() are not known as they are calculated by enrichWaypointData().

In Course:enrichWaypointData(), always use the non-offset position
of the waypoints. This fixes issues when rerunning enrichWaypointData()
on a course with offset.

Also, it wasn't correct in the first place, this is a chicken-egg problem,
since the offset calculation is based on the dx/dz values which at the
first run of enrichWaypointData() are not known as they are calculated
by enrichWaypointData().
@pvaiko pvaiko self-assigned this Oct 5, 2024
@pvaiko pvaiko requested a review from Tensuko October 5, 2024 13:06
@Tensuko Tensuko merged commit 02ea18e into main Oct 5, 2024
2 checks passed
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.

2 participants