View Single Post
  #2   Spotlight this post!  
Unread 19-01-2014, 20:55
Pault's Avatar
Pault Pault is offline
Registered User
FRC #0246 (Overclocked)
Team Role: College Student
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Boston
Posts: 618
Pault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond repute
Re: RobotBuilder parallel commands.

The requires function is in there for a reason: no 2 commands can run in parallel if they require the same subsystem. This is to idiot-proof* the structure so that you don't send conflicting information to a motor/solenoid/etc and confusing the robot. And you need to "require" a subsytem in order to use it, for the same reason as above. Without knowing the details of what you are doing, it is tough for me to make a recommendation, but I will try to offer some general advice. Look at the subsystem you have, and see if it can be divided up into 2+ smaller subsytems. This will eliminate the problem you are currently having, as well as save you a lot of trouble further down the line when you run into other similar problems. If you can't divide up the subsystem, then you are just going to have to figure out how to combine the 2 commands into 1.

Hope this helps.

*I say idiot-proof, but its a pretty common mistake, actually, and can cause big problems.
Reply With Quote