Go to Post This is what I love about FIRST everyone helps and asks why later. - Kyle [more]
Home
Go Back   Chief Delphi > CD-Media > White Papers
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

photos

papers

everything



Team 1114 2015 Code Release (Java)

Kaleb Dodd

By: Kaleb Dodd
New: 11-25-2015 09:53 AM
Updated: 11-25-2015 09:53 AM
Total downloads: 850 times


Team 1114's code for our 2015 robot.

Here is the java code written for our 2015 robot Simbot SideSwipe. Feel free to ask any questions.

Attached Files

  • zip Team1114Code2015

    simbot2015.zip

    downloaddownload file

    uploaded: 11-25-2015 09:53 AM
    filetype: zip
    filesize: 8.2MB
    downloads: 848



Recent Downloaders

Discussion

view entire thread

Reply

11-25-2015 10:01 AM

Kaleb Dodd


Unread Re: paper: Team 1114 2015 Code Release (Java)

You can also send us an email at controls@simbotics.org.



11-25-2015 11:32 AM

markmcgary


Unread Re: paper: Team 1114 2015 Code Release (Java)

I like the Singleton pattern.



11-25-2015 11:41 AM

JesseK


Unread 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



11-25-2015 11:52 AM

Kaleb Dodd


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



11-25-2015 01:05 PM

Jared Russell


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



11-25-2015 01:07 PM

JohnFogarty


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



11-25-2015 01:16 PM

Kaleb Dodd


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



11-26-2015 03:17 PM

jgrindle


Unread 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!



11-27-2015 09:19 PM

DaveL


Unread 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



11-27-2015 09:34 PM

Kaleb Dodd


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



11-27-2015 11:47 PM

Mr. Lim


Unread Re: paper: Team 1114 2015 Code Release (Java)

Thanks for sharing this! Amazing resource...



11-28-2015 03:26 PM

Pauline Tasci


Unread 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!



12-02-2015 06:48 PM

D.gimon


Unread 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



12-02-2015 08:04 PM

Connor McBride


Unread 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?



12-02-2015 09:49 PM

Karthik


Unread Re: paper: Team 1114 2015 Code Release (Java)

Quote:
Originally Posted by Connor McBride View Post
This is really cool! Is the CAD file for your 2016 robot gonna be released to the community as well or no?
Yes, we plan on releasing our 2015 CAD. Once we work through some issues with our website, we'll get it online right away.



12-07-2015 08:26 AM

Connor McBride


Unread Re: paper: Team 1114 2015 Code Release (Java)

Quote:
Originally Posted by Karthik View Post
Yes, we plan on releasing our 2015 CAD. Once we work through some issues with our website, we'll get it online right away.
Awesome! I meant to say 2015 instead of 2016. Guess im just way too excited for the up coming year.



12-07-2015 03:59 PM

akoscielski3


Unread Re: paper: Team 1114 2015 Code Release (Java)

Quote:
Originally Posted by Connor McBride View Post
Awesome! I meant to say 2015 instead of 2016. Guess im just way too excited for the up coming year.
We released the CAD a couple days ago, it's on our website (LINK)



12-08-2015 02:10 PM

kenavt


Unread Re: paper: Team 1114 2015 Code Release (Java)

What is your software development process like? Do you use a version control system?



12-08-2015 02:13 PM

AdamHeard


Unread Re: paper: Team 1114 2015 Code Release (Java)

Quote:
Originally Posted by Connor McBride View Post
Awesome! I meant to say 2015 instead of 2016. Guess im just way too excited for the up coming year.
I too would like their 2016 CAD. Aaron can you make this happen around week 3?

Thanks!



12-08-2015 02:21 PM

Aren Siekmeier


Unread Re: paper: Team 1114 2015 Code Release (Java)

Quote:
Originally Posted by AdamHeard View Post
I too would like their 2016 CAD. Aaron can you make this happen around week 3?

Thanks!
Week 3? I want it now!



view entire thread

Reply

Tags

loading ...



All times are GMT -5. The time now is 08:45 AM.

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