Thread: Code Check
View Single Post
  #1   Spotlight this post!  
Unread 13-02-2011, 20:20
dmitch's Avatar
dmitch dmitch is offline
Chief Head Electrical Guy
AKA: Daniel Mitchell
FRC #1997 (Stag Robotics)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Bishop Miege High School
Posts: 142
dmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the rough
Code Check

Our teams goal is to use 2 window motors to drive the first segment of our arm and one as yet undefined motor to drive the second part (the farther out part). Attached is the code that I believe will do this. I will check it tomorrow but if there is something blatantly wrong I would like to have it solved by tomorrow morning so I don't waste much-needed time.

On the example the open and close blocks are together in the sequence structure. In the code they are closed in the proper place in the FRC framework.

We are using potentiometers, we have yet to find the correct voltage for the correct positions so I just put zeros there for now. This is just one example the actual robot code is on the last 3 attachments. Thank You for any and all Help!
Attached Files
File Type: vi Motor.vi (24.5 KB, 9 views)
File Type: vi Teleop.vi (14.5 KB, 12 views)
File Type: vi Begin.vi (27.8 KB, 6 views)
File Type: vi Finish.vi (15.1 KB, 4 views)
__________________
Reply With Quote