View Single Post
  #9   Spotlight this post!  
Unread 30-05-2011, 12:29
Ziv Ziv is offline
Has code to be writing...
FRC #0125 (Nutrons)
Team Role: Alumni
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Boston
Posts: 39
Ziv is a glorious beacon of lightZiv is a glorious beacon of lightZiv is a glorious beacon of lightZiv is a glorious beacon of lightZiv is a glorious beacon of light
Re: paper: Scripted Autonomous Control: Presentation material and code samples

Quote:
Originally Posted by Jogo View Post
Do you have any recommendations for multitasking? For example, if I want to drive the robot while positioning a manipulator?
It depends on exactly what system you're using. With the case structure method described in the presentation, it may be easiest to make a new case that drives and positions the manipulator simultaneously. This works nicely if this is the only multitasking you need, but it gets cumbersome to implement for many possible combinations.
We created a class for each possible command and placed instances of those commands in a queue, which were run one by one as the exit conditions for the previous command were met. One of our classes was DoubleCommand, which took two other commands and a delay between them as an argument and ran both of them. Depending on the exact setup, something similar could be easy to implement when using a case structure.
Reply With Quote