View Single Post
  #4   Spotlight this post!  
Unread 14-02-2011, 23:29
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: Program 2 coil solenoid

Couple problems:
-It is clicking because you have the same reference and are issuing 2 different commands at the same time. With a double acting solenoid this means that it should be operating on 2 channels. If you are using the solenoid module on the cRIO this means that you should use Channels 1 and 2 (or whatever you are using). The code that I originally posted should satisfy this exactly.
-Also you definitely want to avoid having while loops in your Teleop, this is a bad practice and will more than likely make your drive sluggish at best. With your code the while loop only executes once, so why even have it?
__________________
Reply With Quote