Quote:
Originally Posted by notmattlythgoe
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?