Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Team Tators 2015 Code Release (http://www.chiefdelphi.com/forums/showthread.php?t=137296)

zsnow 20-05-2015 21:54

Team Tators 2015 Code Release
 
Too long; didn't (or won't) read: here's the link: https://github.com/Team2122/Kartoshka

We have decided to publish our code. We like our code. Our code is good. We'd like to use parts of our code in the future. We'd like the Chief Delphi community to look at our code, use it, learn from it, become one with it, perhaps criticize it. (Though why would you ever do that?!)

As one of our seniors put it, "Wow this is some cool code for you!" I couldn't have put it more eloquently.

Some background: The pesky programming team always comes up with a name for our robot and its code. The mechanical team does their own thing. Whatever.

Notable names:
  • 2013 competition robot: TatorBot (like robot, but with Tator; I'm not that creative)
  • 2014 competition robot: Spudnik (like Sputnik, because Russian and Potato and haha xexe)
  • 2014 offseason robot: Potatopult (like Catapult, because Potato and hahaha)
  • 2015 competition robot: Kartoshka (literally "potato" in Russian, because Russian and haha)

We have taken the Russian theme and ran with it. This year, our code has "themed" comments, and classes with names such as Kremlin. It's funny. We had fun.

orangelight 20-05-2015 21:57

Re: Team Tators 2015 Code Release
 
I have never heard of themed code...

zsnow 20-05-2015 22:17

Re: Team Tators 2015 Code Release
 
Quote:

Originally Posted by orangelight (Post 1483321)
I have never heard of themed code...

Well, we had to call it something. Perhaps peruse the code. You'll see what we mean.

From https://github.com/Team2122/Kartoshk...systems/Otto.h:

Code:

/**
 * Gets how far from communism you have turned
 * @return How far from communism in degrees
 */
double GetAngle();

/**
 * Resets angle to straight communsim
 */
void ResetAngle();

/**
 * Makes sure communism sensor is calibrated (zerod)
 */
void StartGyroCalibration();

/**
 * Forces gyro to be calibrated or else...
 */
void FinishGyroCalibration();


MaGiC_PiKaChU 20-05-2015 22:50

Re: Team Tators 2015 Code Release
 
Quote:

Originally Posted by orangelight (Post 1483321)
I have never heard of themed code...

We named a subsystem after a team member who didn't show up after week 2... We also like to name our variables with a lot of precision, and inverted boolean values, to mess up with the other programmers

Code:

boolean True = false
Glad to hear we had two sneaky programmed robots on our alliance!

TheBoulderite 21-05-2015 10:38

Re: Team Tators 2015 Code Release
 
Looks good! You guys had one heck of a robot this year. I know for a fact that our team, Up-A-Creek, really enjoyed competing with you guys at Utah. We hope to see you guys at IRI!


All times are GMT -5. The time now is 05:26.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi