Team 1701 Code GitHub Links

Hello everyone!
Our team has been using command-based Java for many years now, but a new addition this year is the use of a PID to keep our robot driving straight. Feel free to use any of this code for your team , and we welcome any comments, questions, or advice.

https://github.com/Robocubs/2017RobotCode

https://github.com/Robocubs/2017VisionCode

Just wondering

Why does every file has a duplicate of it, and that the only difference is the ~ at the end of the extension? What does it do?

Every file.java~ is a haunting reminder to maintain your .gitignore file :slight_smile:

Or put another way, eclipse by default creates backups of your files and appends a tilde (~) to end of the file name. Programmers sometimes type commands like:

git add .

and accidentally sweep backups into git repositories. The way to fix this is to do the following:


git rm -r **/*~
echo "*~" >> .gitignore
git add .gitignore
git commit -m "remove backup files from repository, and prevent them from coming back"

It’s actually RobotBuilder backups

My apologies, for some reason I linked to the robot code a second time instead of the actual vision code. Here is the link to the offboard vision code:

https://github.com/Robocubs/2017VisionCode