Go to Post The game ends after two minutes and fifteen seconds. The build season ends after six weeks. Using the experience to help improve yourself and the rest of the world will take the rest of your life. - dlavery [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 04-05-2016, 14:48
Pratik Kunapuli's Avatar
Pratik Kunapuli Pratik Kunapuli is offline
Probably browning-out on Astro-Turf
FRC #1648 (G3 Robotics)(EWCP)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Atlanta, GA
Posts: 143
Pratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to all
Re: Command Based V iterative V Custom?

I've always used iterative, and have no issues with it. Some people say command based is more intuitive, but I've always thought the opposite. I think command based lends itself to automation very well, so I'll definitely be taking a look into it during the summer/offseason. Ultimately, it's easy to try both and figure out what works best for you, just pick the one that you like the best and run with it.
__________________
Official Driving Record: 101-59-0
2012-2015 Student 341 Miss Daisy
2015-Current Mentor 1648 G3 Robotics
Reply With Quote
  #2   Spotlight this post!  
Unread 04-05-2016, 14:50
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is online now
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,712
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Command Based V iterative V Custom?

Quote:
Originally Posted by Pratik Kunapuli View Post
I've always used iterative, and have no issues with it. Some people say command based is more intuitive, but I've always thought the opposite. I think command based lends itself to automation very well, so I'll definitely be taking a look into it during the summer/offseason. Ultimately, it's easy to try both and figure out what works best for you, just pick the one that you like the best and run with it.
I wouldn't say intuitive. I've always told people it makes it harder to do very simple things but easier to do more complex things.
Reply With Quote
  #3   Spotlight this post!  
Unread 04-05-2016, 16:43
mikets's Avatar
mikets mikets is online now
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Command Based V iterative V Custom?

The design of our library is supposed to be as easy to use as Iterative robot but also supports complex scenarios you can find in command-based code but simpler to understand.
__________________
Reply With Quote
  #4   Spotlight this post!  
Unread 07-05-2016, 12:14
Bell-Inequaliy's Avatar
Bell-Inequaliy Bell-Inequaliy is offline
Registered User
AKA: Josh
FRC #5332 (Toaster Tech)
Team Role: Programmer
 
Join Date: Mar 2015
Rookie Year: 2013
Location: Georgia
Posts: 4
Bell-Inequaliy is an unknown quantity at this point
Re: Command Based V iterative V Custom?

Sorry to hop on a bit late, it took me a little while to prepare what I was going to show you. If you want to look at an example of a custom coded but non-library structure, take a look here:

https://github.com/ToasterTechFRC/Toaster-Base-Bot

It is built off of the iterative model but it has a structure similar to command-based. It does require a bit more knowledge of Java than entry-level but it does show how a custom structure can be created manually to fit your needs. I've also documented it as best I can. Our 2016 code (we haven't pushed our CMP code) is also on GitHub, but it is much messier and has significantly less comments although it does show how our structure can function with autonomous modes.
Reply With Quote
  #5   Spotlight this post!  
Unread 10-05-2016, 19:53
mikets's Avatar
mikets mikets is online now
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Command Based V iterative V Custom?

Quote:
Originally Posted by Bell-Inequaliy View Post
Sorry to hop on a bit late, it took me a little while to prepare what I was going to show you. If you want to look at an example of a custom coded but non-library structure, take a look here:

https://github.com/ToasterTechFRC/Toaster-Base-Bot

It is built off of the iterative model but it has a structure similar to command-based. It does require a bit more knowledge of Java than entry-level but it does show how a custom structure can be created manually to fit your needs. I've also documented it as best I can. Our 2016 code (we haven't pushed our CMP code) is also on GitHub, but it is much messier and has significantly less comments although it does show how our structure can function with autonomous modes.
Your code implemented a framework. It is a light weight framework but it is still essentially a library although it is structured not very library friendly (i.e. all reusable code scattered in various folders instead of concentrating in one library folder).
__________________
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 14:40.

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