
09-05-2013, 15:01
|
 |
 |
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,715
|
|
|
Re: Subsystem / Command style code
Quote:
Originally Posted by Jon Stratis
The Command style is good for some things, but it can also be limiting. We had our climbing routine working for Lake Superior, but did a code review between LS and North Star. We found that there were some additional features we would have liked to add, but the fact that the routine was Command based, adding in each step of the climb as a sequential task, created a rather huge hurdle to what we wanted to accomplish. In the end, we determined that it would have been too much time/effort for the gain. If we had just done it programatically without sequential commands, it would have been much simpler to add our new features.
|
Why could it not have been accomplished through a CommandGroup adding commands in series?
|