Go to Post I was watching the webcast when that score was posted and thought to myself, "What did they do, steal a donut from Dave?" - MissInformation [more]
Home
Go Back   Chief Delphi > ChiefDelphi.com Website > Extra Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-11-2015, 10:54
Kaleb Dodd's Avatar
Kaleb Dodd Kaleb Dodd is offline
Registered User
FRC #1114 (Simbotics)
Team Role: Programmer
 
Join Date: Dec 2014
Rookie Year: 2013
Location: St.Catharines, Ontario, Canada
Posts: 6
Kaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond repute
paper: Team 1114 2015 Code Release (Java)

Thread created automatically to discuss a document in CD-Media.

Team 1114 2015 Code Release (Java) by Kaleb Dodd
Reply With Quote
  #2   Spotlight this post!  
Unread 25-11-2015, 11:01
Kaleb Dodd's Avatar
Kaleb Dodd Kaleb Dodd is offline
Registered User
FRC #1114 (Simbotics)
Team Role: Programmer
 
Join Date: Dec 2014
Rookie Year: 2013
Location: St.Catharines, Ontario, Canada
Posts: 6
Kaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond repute
Re: paper: Team 1114 2015 Code Release (Java)

You can also send us an email at controls@simbotics.org.
Reply With Quote
  #3   Spotlight this post!  
Unread 25-11-2015, 12:32
markmcgary's Avatar
markmcgary markmcgary is offline
Software Mentor
FRC #4322 (Clockwork Oranges)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Fullerton, CA
Posts: 173
markmcgary is just really nicemarkmcgary is just really nicemarkmcgary is just really nicemarkmcgary is just really nicemarkmcgary is just really nice
Re: paper: Team 1114 2015 Code Release (Java)

I like the Singleton pattern.
Reply With Quote
  #4   Spotlight this post!  
Unread 25-11-2015, 12:41
JesseK's Avatar
JesseK JesseK is offline
Expert Flybot Crasher
FRC #1885 (ILITE)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2005
Location: Reston, VA
Posts: 3,637
JesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond repute
Re: paper: Team 1114 2015 Code Release (Java)

Quote:
Code:
//FIXME: this is kinda horrible do an actual implementation
I think the only thing wrong with the implementation is the name of the variable. It looks like a hack at first, but in reality it reads as the best way to trigger a sensor reset upon arrival at the point.

Really nifty stuff in this code. Looks like that indexer code took a bit more to get done than we conjectured.

What units are typically used for things like DriveToPoint? inches, cm, etc, ticks?

That is a LOT of autonomous modes o.O
__________________

Drive Coach, 1885 (2007-present)
CAD Library Updated 5/1/16 - 2016 Curie/Carver Industrial Design Winner
GitHub
Reply With Quote
  #5   Spotlight this post!  
Unread 25-11-2015, 12:52
Kaleb Dodd's Avatar
Kaleb Dodd Kaleb Dodd is offline
Registered User
FRC #1114 (Simbotics)
Team Role: Programmer
 
Join Date: Dec 2014
Rookie Year: 2013
Location: St.Catharines, Ontario, Canada
Posts: 6
Kaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond repute
Re: paper: Team 1114 2015 Code Release (Java)

We started using Inches for drive movements this year. We convert the encoder ticks into inches using the ticksPerInch variable in SensorInput.
Reply With Quote
  #6   Spotlight this post!  
Unread 25-11-2015, 14:05
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,077
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: paper: Team 1114 2015 Code Release (Java)

I love reading code for great robots with a high level of automation. You can tell just how much time was spent optimizing everything.

One question. I noticed in your autonomous driving code, you do some compensation for voltage level:

Code:
Vect output = new Vect(xOut*12.5/voltage, yOut*12.5/voltage);
Did you find that this made a significant difference in your application as opposed to just outputting xOut and yOut directly? It looks like you had both modes available, so you must have done some sort of comparison.
Reply With Quote
  #7   Spotlight this post!  
Unread 25-11-2015, 14:07
JohnFogarty's Avatar
JohnFogarty JohnFogarty is offline
FTC, I have returned.
AKA: @doctorfogarty
FTC #11444 (Garnet Squadron) & FRC#1102 (M'Aiken Magic)
Team Role: Mentor
 
Join Date: Aug 2009
Rookie Year: 2006
Location: SC
Posts: 1,564
JohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond repute
Re: paper: Team 1114 2015 Code Release (Java)

The number of auto modes you prepared is impressive. The way your team codes is very similar to how we do things on 4901!

I'm actually interested in the same question Jared had as well.
__________________
John Fogarty
2010 FTC World Championship Winner & 2013-2014 FRC Orlando Regional Winner
Mentor FRC Team 1102 M'Aiken Magic
"Head Bot Coach" FTC Team 11444 Garnet Squadron
Former Student & Mentor FLL 1102, FTC 1102 & FTC 3864, FRC 1772, FRC 5632
2013 FTC World Championship Guest Speaker
Reply With Quote
  #8   Spotlight this post!  
Unread 25-11-2015, 14:16
Kaleb Dodd's Avatar
Kaleb Dodd Kaleb Dodd is offline
Registered User
FRC #1114 (Simbotics)
Team Role: Programmer
 
Join Date: Dec 2014
Rookie Year: 2013
Location: St.Catharines, Ontario, Canada
Posts: 6
Kaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond repute
Re: paper: Team 1114 2015 Code Release (Java)

The compensation for battery voltage is in an unused version of the driveToPoint method. We played around with limiting the output based on current speed and battery voltage to reduce wheel slip but we eventually settled on linearly ramping the output over time.
Reply With Quote
  #9   Spotlight this post!  
Unread 26-11-2015, 16:17
jgrindle's Avatar
jgrindle jgrindle is offline
Losing Sleep
AKA: John Grindle
FRC #5122 (RobOTies)
Team Role: Programmer
 
Join Date: Nov 2014
Rookie Year: 2015
Location: Old Town, ME
Posts: 34
jgrindle will become famous soon enough
Re: paper: Team 1114 2015 Code Release (Java)

This puts my Kiwis PID loop to shame. I love going through your Code, it's so clean and organized. If I had the chance to redo my code, I would make it similar to yours, but surprisingly mine actually works somewhat nicely. I may redo parts of it, and make it look more like this, but my biggest problem would be encoders on the wheels. I'm currently only using a gyro to fix problems. I find it fun to compare the two different ways of implementing kiwi drives. If I had the chance(and parts), parts of my code would look more like yours! Awesome Job!
__________________

FRC 2015 Season: Programmer, Electrical, PIDTuner, Safety Captain
FRC 2015 Off-Season: Programmer, CAD Designer, Driver, Drive Team Coach, Electrical, Mechanical, PIDTuner
Reply With Quote
  #10   Spotlight this post!  
Unread 27-11-2015, 22:19
DaveL DaveL is offline
Registered User
FRC #2976
 
Join Date: Jan 2013
Location: WA
Posts: 174
DaveL is a jewel in the roughDaveL is a jewel in the roughDaveL is a jewel in the roughDaveL is a jewel in the rough
Re: paper: Team 1114 2015 Code Release (Java)

Hi Team1114:
Thanks for making your code available. I would like to learn how your code works, but I'm totally confused.

I downloaded the file and unzipped its contents.
Next, I clicked on a bunch of folders.

Do I need a development environment to read the code?

Dave
Build Mentor
Reply With Quote
  #11   Spotlight this post!  
Unread 27-11-2015, 22:34
Kaleb Dodd's Avatar
Kaleb Dodd Kaleb Dodd is offline
Registered User
FRC #1114 (Simbotics)
Team Role: Programmer
 
Join Date: Dec 2014
Rookie Year: 2013
Location: St.Catharines, Ontario, Canada
Posts: 6
Kaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond reputeKaleb Dodd has a reputation beyond repute
Re: paper: Team 1114 2015 Code Release (Java)

The code was written in the eclipse IDE and would be best viewed from that program, however you can go to src>org>simbotics>simbot2015 and you will find all of our .java files which can be opened in any text editor but I would recommend notepad++.
Reply With Quote
  #12   Spotlight this post!  
Unread 28-11-2015, 00:47
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: paper: Team 1114 2015 Code Release (Java)

Thanks for sharing this! Amazing resource...
__________________
In life, what you give, you keep. What you fail to give, you lose forever...
Reply With Quote
  #13   Spotlight this post!  
Unread 28-11-2015, 16:26
Pauline Tasci's Avatar
Pauline Tasci Pauline Tasci is offline
Rockets and Robots
FRC #3476 (Code Orange)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Irvine, CA
Posts: 307
Pauline Tasci has a reputation beyond reputePauline Tasci has a reputation beyond reputePauline Tasci has a reputation beyond reputePauline Tasci has a reputation beyond reputePauline Tasci has a reputation beyond reputePauline Tasci has a reputation beyond reputePauline Tasci has a reputation beyond reputePauline Tasci has a reputation beyond reputePauline Tasci has a reputation beyond reputePauline Tasci has a reputation beyond reputePauline Tasci has a reputation beyond repute
Re: paper: Team 1114 2015 Code Release (Java)

Thanks Simbotics for releasing this! Code Orange, 3476, is in the process of learning Java in order to use it for the 2016 season instead of our usual LabVIEW efforts. These really help us!
__________________
Team 3476 Code Orange- 2014-? ~ Head Mechanical and Design Mentor
FIRST Orange County 2015-? ~Regional Planning Committee Member
Beach Blitz 2016-? ~ Event Chair/Director
FIRST Volunteer-2010-?
Team 589 Falkon Robotics- 2010-2013 ~Captain, Driver, Outreach, Mech Lead
CD Moderator~ Always feel free to PM me.
Facebook
Reply With Quote
  #14   Spotlight this post!  
Unread 02-12-2015, 19:48
D.gimon D.gimon is offline
Registered User
FRC #5324
 
Join Date: Dec 2014
Rookie Year: 2014
Location: Canada
Posts: 23
D.gimon is an unknown quantity at this point
Re: paper: Team 1114 2015 Code Release (Java)

Why can I not download the .zip file??

From home it gets to the end and then says "Failed".

From work it doesn't even start.

Thanks in advance,
Dan
Reply With Quote
  #15   Spotlight this post!  
Unread 02-12-2015, 21:04
Connor McBride's Avatar
Connor McBride Connor McBride is offline
I live my life 2:30 at a time!
FRC #0166 (Chop Shop)
Team Role: College Student
 
Join Date: Apr 2015
Rookie Year: 2013
Location: Merrimack, NH
Posts: 88
Connor McBride will become famous soon enough
Re: paper: Team 1114 2015 Code Release (Java)

This is really cool! Is the CAD file for your 2016 robot gonna be released to the community as well or no?
__________________
FRC 166 2013-2016 (student) 2016-present (junior mentor)
NHTI VEX U 2016-present (treasurer)




Youtube Channel Team Page Facebook Page
Reply With Quote
Reply


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 05:18.

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