View Single Post
  #2   Spotlight this post!  
Unread 15-02-2011, 15:35
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Motor control isnt working

If you are using exactly the motor control example it should work.

If you are trying to integrate it into your own robot project, you are missing the instructions for how to take the examples and put them in your code.

Things to the left of the example's while loop need to go in the Begin vi. Things inside the loop go in Teleop. Things to the right of the loop go in Finish. To communicate the reference that Open provides, use a Motor RefNum Set in Begin with a name you choose -- see the other things in Begin for how that works -- and use a Motor RefNum Get in both Teleop and Finish.
Reply With Quote