Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Extra Discussion (http://www.chiefdelphi.com/forums/forumdisplay.php?f=68)
-   -   paper: Team 1114 2015 Code Release (Java) (http://www.chiefdelphi.com/forums/showthread.php?t=139638)

Kaleb Dodd 25-11-2015 10:54

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

Kaleb Dodd 25-11-2015 11:01

Re: paper: Team 1114 2015 Code Release (Java)
 
You can also send us an email at controls@simbotics.org.

markmcgary 25-11-2015 12:32

Re: paper: Team 1114 2015 Code Release (Java)
 
I like the Singleton pattern.

JesseK 25-11-2015 12:41

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

Kaleb Dodd 25-11-2015 12:52

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.

Jared Russell 25-11-2015 14:05

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.

JohnFogarty 25-11-2015 14:07

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.

Kaleb Dodd 25-11-2015 14:16

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.

jgrindle 26-11-2015 16:17

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!

DaveL 27-11-2015 22:19

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

Kaleb Dodd 27-11-2015 22:34

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++.

Mr. Lim 28-11-2015 00:47

Re: paper: Team 1114 2015 Code Release (Java)
 
Thanks for sharing this! Amazing resource...

Pauline Tasci 28-11-2015 16:26

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!

D.gimon 02-12-2015 19:48

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

Connor McBride 02-12-2015 21:04

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?


All times are GMT -5. The time now is 06:24.

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