Go to Post I think being successful in FIRST is creating an environment where people can grow, learn, change, and recreate... It's about making an environment where kids feel they can be successful... in whatever discipline they choose. - ColleenShaver [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 09-03-2014, 19:54
ILikePizza555's Avatar
ILikePizza555 ILikePizza555 is offline
Registered User
AKA: Isaac Avram
FRC #2761 (CN Ironhorse)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Fresno, CA
Posts: 63
ILikePizza555 is an unknown quantity at this point
Command-Based Programming Patterns

Hey all,

So we used the Simple Robot Template this year for the programming of our robot. It works, but it's not the best way to code, especially when your expecting a few new members on the programming team. I've tried to port our code to use the Command Pattern, but I'm not sure how to structure it.

So, I've come for some help. How do you guys structure your command-based programs?
__________________
PONIES ARE STOOPID MAGIK -Heavy
Reply With Quote
  #2   Spotlight this post!  
Unread 09-03-2014, 20:50
pblankenbaker pblankenbaker is offline
Registered User
FRC #0868
 
Join Date: Feb 2012
Location: Carmel, IN, USA
Posts: 108
pblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of light
Re: Command-Based Programming Patterns

WPI has a very nice overview and tutorial on using the command based framework at: https://wpilib.screenstepslive.com/s/3120/m/7952

It is a very powerful framework, but expect it to take some time to wrap your head around it. It might be a challenge to switch mid-season.
Reply With Quote
  #3   Spotlight this post!  
Unread 09-03-2014, 21:23
ILikePizza555's Avatar
ILikePizza555 ILikePizza555 is offline
Registered User
AKA: Isaac Avram
FRC #2761 (CN Ironhorse)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Fresno, CA
Posts: 63
ILikePizza555 is an unknown quantity at this point
Re: Command-Based Programming Patterns

Quote:
Originally Posted by pblankenbaker View Post
WPI has a very nice overview and tutorial on using the command based framework at: https://wpilib.screenstepslive.com/s/3120/m/7952

It is a very powerful framework, but expect it to take some time to wrap your head around it. It might be a challenge to switch mid-season.
Looking at the other frameworks I have used before (not robotics related). It's not quite that powerful, in my option.

Also, I have looked at those docs. The "Converting a Simple Autonomous program to a Command based autonomous program" seems new, so I'll have a look at that. The things is though, I'm looking for advice on general program structure, not on making commands, command groups, and subsystems.

Also, the season is pretty much over for us.
__________________
PONIES ARE STOOPID MAGIK -Heavy
Reply With Quote
  #4   Spotlight this post!  
Unread 10-03-2014, 01:44
F22Rapture's Avatar
F22Rapture F22Rapture is offline
College Student, Mentor
AKA: Daniel A
FRC #3737 (4H Rotoraptors)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Goldsboro, NC
Posts: 476
F22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant future
Re: Command-Based Programming Patterns

If you're mainly interested in the structure of the program, then check out our (unfinished) code for this year. The structure is all there, even though it's only about 85% done.

I'm actually kind of proud of it, since last year was pretty disorganized.
Attached Files
File Type: zip Rotoraptors-ArialAssist.zip (525.2 KB, 17 views)
__________________
Research is what I’m doing when I don’t know what I’m doing.
- Wernher von Braun
Attending: Raleigh NC Regional
Reply With Quote
  #5   Spotlight this post!  
Unread 10-03-2014, 18:36
ILikePizza555's Avatar
ILikePizza555 ILikePizza555 is offline
Registered User
AKA: Isaac Avram
FRC #2761 (CN Ironhorse)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Fresno, CA
Posts: 63
ILikePizza555 is an unknown quantity at this point
Re: Command-Based Programming Patterns

Neat. Thanks for that. I'll have a look over it and see what I can get from it.
__________________
PONIES ARE STOOPID MAGIK -Heavy
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 12:36.

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