Go to Post If you promote not only the growth of your own team but of other teams at other schools you are successful. - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 20-05-2015, 21:54
zsnow's Avatar
zsnow zsnow is offline
Head of Satire
AKA: Zachary Snow
FRC #2122 (Team Tators)
Team Role: Programmer
 
Join Date: Dec 2012
Rookie Year: 2012
Location: Boise, Idaho
Posts: 17
zsnow has a spectacular aura aboutzsnow has a spectacular aura about
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.
__________________
Programming Lead: 2013-2015
Mechanical Dabbler: 2013, 2015

2015: IRI Semi Finalists 2338, 2122, 107, Tesla IDA, Utah Finalists 2122, 3230, 3405, EEA, WFFA, Arizona West Winners 2122, 3309, 5059, ICA
2014: Utah Winners 2122, 2996, 3191, ICA, Las Vegas Semi Finalists 2122, 399, 1572, ICA, CCC Winners 1678, 2122, 9073, ICA
2013: CalGames Winners 2122, 1678, 4171, Judges Award
2007-12: Lot's of wins and awards I wish I had been a part of
  #2   Spotlight this post!  
Unread 20-05-2015, 21:57
orangelight's Avatar
orangelight orangelight is offline
Registered User
AKA: Alex
FRC #0548 (Robostangs)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Northville
Posts: 168
orangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to behold
Re: Team Tators 2015 Code Release

I have never heard of themed code...
__________________


  #3   Spotlight this post!  
Unread 20-05-2015, 22:17
zsnow's Avatar
zsnow zsnow is offline
Head of Satire
AKA: Zachary Snow
FRC #2122 (Team Tators)
Team Role: Programmer
 
Join Date: Dec 2012
Rookie Year: 2012
Location: Boise, Idaho
Posts: 17
zsnow has a spectacular aura aboutzsnow has a spectacular aura about
Re: Team Tators 2015 Code Release

Quote:
Originally Posted by orangelight View Post
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();
__________________
Programming Lead: 2013-2015
Mechanical Dabbler: 2013, 2015

2015: IRI Semi Finalists 2338, 2122, 107, Tesla IDA, Utah Finalists 2122, 3230, 3405, EEA, WFFA, Arizona West Winners 2122, 3309, 5059, ICA
2014: Utah Winners 2122, 2996, 3191, ICA, Las Vegas Semi Finalists 2122, 399, 1572, ICA, CCC Winners 1678, 2122, 9073, ICA
2013: CalGames Winners 2122, 1678, 4171, Judges Award
2007-12: Lot's of wins and awards I wish I had been a part of
  #4   Spotlight this post!  
Unread 20-05-2015, 22:50
MaGiC_PiKaChU's Avatar
MaGiC_PiKaChU MaGiC_PiKaChU is offline
Drive Coach
AKA: Antoine L.
FRC #3360 (Hyperion)
Team Role: Mentor
 
Join Date: Mar 2014
Rookie Year: 2012
Location: Sherbrooke
Posts: 608
MaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond repute
Re: Team Tators 2015 Code Release

Quote:
Originally Posted by orangelight View Post
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!
__________________
2012 - 3360 - Junior member
2013 - 3360 - Lead Programmer, Human player
2014 - 3360 - Lead Programmer, Human player
2015 - 3360 - Lead Programmer, Driver
2016 - 3360 - Mentor, Drive coach



  #5   Spotlight this post!  
Unread 21-05-2015, 10:38
TheBoulderite's Avatar
TheBoulderite TheBoulderite is offline
Director of Communications
AKA: Warren Bartlett
FRC #1619 (Up-A-Creek Robotics)
Team Role: Leadership
 
Join Date: Dec 2014
Rookie Year: 2015
Location: Longmont, CO
Posts: 296
TheBoulderite has a reputation beyond reputeTheBoulderite has a reputation beyond reputeTheBoulderite has a reputation beyond reputeTheBoulderite has a reputation beyond reputeTheBoulderite has a reputation beyond reputeTheBoulderite has a reputation beyond reputeTheBoulderite has a reputation beyond reputeTheBoulderite has a reputation beyond reputeTheBoulderite has a reputation beyond reputeTheBoulderite has a reputation beyond reputeTheBoulderite has a reputation beyond repute
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!
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:55.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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