View Single Post
  #2   Spotlight this post!  
Unread 03-04-2009, 14:47
Cuse's Avatar
Cuse Cuse is offline
Registered User
AKA: Matt Mancuso
FRC #0175 (Buzz Robotics)
Team Role: Alumni
 
Join Date: Mar 2007
Rookie Year: 2005
Location: Enfield, CT
Posts: 22
Cuse is an unknown quantity at this point
Re: Button Programming Error?

Rather than opening the motors repeatedly for each case, I would instead have a single Open Motor for each outside of the loop and a single Set Speed for each within the loop, and simply have the speed values as the case selects.

Instead of doing 2 seperate cases structures for identical motors, also just use an Or operator on the selector input for the button inputs.
Attached Files
File Type: vi Basic Robot Main.vi (52.3 KB, 73 views)
__________________


Last edited by Cuse : 03-04-2009 at 14:53. Reason: Added modified VI
Reply With Quote