View Single Post
  #6   Spotlight this post!  
Unread 19-02-2013, 11:22
Omar's Avatar
Omar Omar is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Huntsville, AL
Posts: 122
Omar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of light
Re: Motor in Autonomous?

Quote:
Originally Posted by chriz4gx View Post
I just had a quick question about that my team is doing the same code but with different motors. But we want that the sequence repeats itself 3 times(For each frisbee) and then it sets the output of those motors to 0, how would I do that?
FOR LOOP

Separate out the last frame (the set all to zero) and place the three Motor Set output out off to the right. (remove the last empty frame). Wire up the 3 MotorControlDevRef to each of the three. Then put a For Loop around JUST the "Flat Sequence Structure". Do not include the three (3) "MotorContolRefNum Registry Get" keep them off to the left or the last three Motor Sett Output keep them off to the right. Right click on the Auto Indexing terminals on the right side of the For Loop where the wires are now broken and select "Tunnel Mode > Last Value"

Create a constant from the For Loop Count Terminal [N] and set it to '3'
__________________
Omar

Last edited by Omar : 19-02-2013 at 11:28.
Reply With Quote