Log in

View Full Version : Team 1625's 2014 Code


Lightfoot26
19-05-2014, 19:32
I decided that it might be cool to share our code with CD.... so here it is... we don't pride ourselves on its beauty, but it works, and we had a little fun with it! This is the revision that was loaded moments before we competed on Einstein. Enjoy! If nothing else, I hope it gives you a nice laugh! :)

Link:
https://www.dropbox.com/s/s4zw3mbufe8i4f4/2014Code.rar
(Let me know if link is broken, or there are some file system errors with the code! :P )

Lightfoot26
27-05-2014, 15:22
Please feel free to comment and let me know what you think, and any advice you have for us!

Invictus3593
28-05-2014, 18:09
Can you explain what the laser did? All I see is a DIO Input for it and that the global value written to is used in Autonomous. Was it your hot-goal detection?

Lightfoot26
30-05-2014, 14:42
Yes, it is used to detect the hot goals.

Invictus3593
11-06-2014, 10:53
Obviously this didn't affect your performance, but I'll ask anyways.

Why is there all kinds of code in teleop? Would it not be more responsive and give you more control over timing the loops if you put it all into Periodic Tasks in one-or-more loops and just set globals from the controllers in teleop?

Lightfoot26
12-06-2014, 20:49
Honestly.... Yes, Probably. The reason there is a lot of code in TeleOP is mainly due to rushed coding and bad habits. Like I said, we aren't the most legit.. haha its something we strive to improve every year.