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 swapping of left and right paths #139

Merged
merged 2 commits into from
Jan 28, 2019

Conversation

kjrobrien
Copy link
Contributor

This PR closes #137.

@kjrobrien kjrobrien requested a review from SamCarlberg January 28, 2019 02:50
Copy link
Member

@SamCarlberg SamCarlberg left a comment

Choose a reason for hiding this comment

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

I hope this is a temporary hack to get the app working well for the season, and will be fixed properly at a later date.

@@ -337,9 +337,9 @@ private void buildPaths() {
TankModifier tank = path.getTankModifier();
Pathfinder.writeToCSV(new File(output, path.getPathNameNoExtension() + ".pf1.csv"),
tank.getSourceTrajectory());
Pathfinder.writeToCSV(new File(output, path.getPathNameNoExtension() + ".left.pf1.csv"),
tank.getLeftTrajectory());
Pathfinder.writeToCSV(new File(output, path.getPathNameNoExtension() + ".right.pf1.csv"),
Copy link
Member

Choose a reason for hiding this comment

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

Should leave a comment here to explain the hack and why the left path goes to the right-side file and vice-versa.

@kjrobrien
Copy link
Contributor Author

This is a hack to fix for this season. Through some extensive investigating, it seems that our orientation of the coordinate system causes this issue. To prevent breaking changes in 2019, the coordinate system will be fixed for the 2020 season.

@kjrobrien kjrobrien merged commit 9a0ac9a into wpilibsuite:master Jan 28, 2019
@kjrobrien kjrobrien deleted the swap-fix branch January 28, 2019 03:51
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.

Left and Right paths are swapped
2 participants