View Single Post
  #12   Spotlight this post!  
Unread 10-05-2013, 16:50
jacob9706 jacob9706 is offline
Registered User
AKA: Jacob Ebey
FRC #3574 (High Tekerz)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Seattle
Posts: 101
jacob9706 is on a distinguished road
Re: Subsystem / Command style code

Quote:
Originally Posted by notmattlythgoe View Post
I'm curious, could you elaborate on the issues you were having? Maybe we are having the same issues and haven't noticed it yet. I apologize for derailing this thread from it's original topic.
I was not mentoring robot coding this year, I was helping with the vision code. One thing I remember though had to do with the scheduling and how/when they execute. Sample

Code:
addParallel(new HopActuate());
addParallel(new FlingerInfield());
addSequential(new Wait(3.0));
If we were to schedule these commands the order of execution is Wait(3.0), HopActuate(), FlingerInfield(). To us that was just screwball.

The link to the CommandGroup2Base makes it so that as soon as the parallel is reached it starts and does not wait on a sequential to be started. the new order of execution would be HopActuate(), FlingerInfield(), Wait(3.0). That seems more straight forward doesn't it?
__________________
/*
* Team 3574 Alumni
*
* 2011 - Highest Seeded Rookie
* 2011 - Rookie All-Star
* 2012 - Engineering Inspiration
* 2012 - Olympic Deans List Winner
* 2013 - Engineering Inspiration
* 2013 - Judges Award (For unique circular robot and the way the team works together.)
*/
Reply With Quote