Go to Post FIRST things first. - Mike Ciance [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 08-09-2013, 23:38
Ipiano's Avatar
Ipiano Ipiano is offline
Registered User
AKA: Andrew Stelter
FRC #3018 (Nordic Storm)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Mankato, Minnesota
Posts: 27
Ipiano is an unknown quantity at this point
Re: Revolutionizing autonomous

Also, I'm not saying YOUR team specifically should use my setup. You seem to have it all worked out. This is mainly for the teams that don't really have time to test lots of autonomous stuff and don't really know how to set it up. Almost all of the tournaments we were at the most we saw for autonomous was 3 shots maybe, or a drive into the wall and use inertia to drop frisbees.
__________________
________
Genius is one percent inspiration and ninety-nine percent perspiration.
--Thomas A. Edison
Reply With Quote
  #2   Spotlight this post!  
Unread 09-09-2013, 07:20
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 542
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Revolutionizing autonomous

Quote:
Originally Posted by Ipiano View Post
Also, I'm not saying YOUR team specifically should use my setup. You seem to have it all worked out. This is mainly for the teams that don't really have time to test lots of autonomous stuff and don't really know how to set it up. Almost all of the tournaments we were at the most we saw for autonomous was 3 shots maybe, or a drive into the wall and use inertia to drop frisbees.
That's my code not the teams. The actual team code (2013Iterative) was only working as 3disc until worlds when we got 5disc lol (don't ask). My main issue with the parser is that it can be hard to read and as long as you get the procedure done, you can just use sd to change the values, but I guess if it worked for you everyone's different.
Reply With Quote
  #3   Spotlight this post!  
Unread 09-09-2013, 08:21
Ipiano's Avatar
Ipiano Ipiano is offline
Registered User
AKA: Andrew Stelter
FRC #3018 (Nordic Storm)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Mankato, Minnesota
Posts: 27
Ipiano is an unknown quantity at this point
Re: Revolutionizing autonomous

Ohhh I see what you mean. But you don't actually have to read the parser
But still, very few teams know about the SmartDashboard, and very few teams have Autonomous. The ones that do are usually the more impressive ones who, like your team, have a 5-disc auto or something equal. I mostly want to help out the teams that don't have as much. They just have to drop these into their project, extend from them, fill out the abstract methods in the commands, And pass in a list of those commands in RobotInit.
__________________
________
Genius is one percent inspiration and ninety-nine percent perspiration.
--Thomas A. Edison
Reply With Quote
  #4   Spotlight this post!  
Unread 09-09-2013, 14:44
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 542
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Revolutionizing autonomous

Quote:
Originally Posted by Ipiano View Post
Ohhh I see what you mean. But you don't actually have to read the parser
But still, very few teams know about the SmartDashboard, and very few teams have Autonomous. The ones that do are usually the more impressive ones who, like your team, have a 5-disc auto or something equal. I mostly want to help out the teams that don't have as much. They just have to drop these into their project, extend from them, fill out the abstract methods in the commands, And pass in a list of those commands in RobotInit.
Our auton never actually worked that well, it would go good at testing than run into the wall at competition. (Mine worked fine but It was never really tested at comp) https://github.com/1684Chimeras/2013...utonomous.java

(next year will be a command-based structure like the earlier link)

My code follows similar structure, you just drop in TimedCommandGroup.java and add commands, in the 2014 code I've added a simple little command generator that will allow me to run 1-8 motors/relays/solenoids/etc at whatever desired value. Your code might be faster to write, but mine is easier to read and better support for multiple modes plus once you learn to FTP, changing values without SD doesn't take too long
Reply With Quote
  #5   Spotlight this post!  
Unread 09-09-2013, 15:16
Ipiano's Avatar
Ipiano Ipiano is offline
Registered User
AKA: Andrew Stelter
FRC #3018 (Nordic Storm)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Mankato, Minnesota
Posts: 27
Ipiano is an unknown quantity at this point
Re: Revolutionizing autonomous

I don't know about better at supporting multiple modes, we had had a couple different strings we could use, and just put in the relevant one once we had the robot on the field. But, I agree that it is probably easier to read.
Either way, the stuff in this thread should be good for jump-starting a team who has 0 autonomous.
__________________
________
Genius is one percent inspiration and ninety-nine percent perspiration.
--Thomas A. Edison
Reply With Quote
  #6   Spotlight this post!  
Unread 11-09-2013, 13:40
connor.worley's Avatar
connor.worley connor.worley is offline
Registered User
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2010
Location: Berkeley/San Diego
Posts: 601
connor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond repute
Re: Revolutionizing autonomous

Here's some scripting stuff I worked on a while back so that files can be deployed over FTP with no reboot. I haven't touched it since but it'd be interesting to see something similar in Java (not sure about yacc/lex equivalents).
__________________
Team 973 (2016-???)
Team 5499 (2015-2016)
Team 254 (2014-2015)

Team 1538 (2011-2014)
2014 Driver (25W 17L 1T)
日本語でOK
Reply With Quote
  #7   Spotlight this post!  
Unread 13-09-2013, 18:02
Ipiano's Avatar
Ipiano Ipiano is offline
Registered User
AKA: Andrew Stelter
FRC #3018 (Nordic Storm)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Mankato, Minnesota
Posts: 27
Ipiano is an unknown quantity at this point
Re: Revolutionizing autonomous

Well it seems like it's the same basic idea as both of our scripting programs... however, I can't say for sure because I have know experience with regular expressions or yacc/lex.

As for ftp, I'm pretty arhowk mentioned that he does that, and I guess I could use it if I needed to, the RobotPreferences is just a file on the CRio. But I don't see a reason to use Ftp over SD because SD is so convenient(Some teams mentioned that they weren't allowed to use SD, so in that case FTP is, obviously, preferable for changing autonomous seconds before the match starts)
__________________
________
Genius is one percent inspiration and ninety-nine percent perspiration.
--Thomas A. Edison
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 10:00.

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