View Single Post
  #3   Spotlight this post!  
Unread 14-02-2011, 19:47
dahlboy15 dahlboy15 is offline
Vice President
AKA: Dyson Dahl
FRC #3290 (Robo-Bears)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Baudette, MN
Posts: 14
dahlboy15 is an unknown quantity at this point
Re: Program 2 coil solenoid

Quote:
Originally Posted by DavidGitz View Post
Normally I wouldn't post complete code (I'd rather give suggestions and help guide you) but since we are almost a week away from ship here you go.

Attached .vi works by toggling a state whenever button 1 is pressed and actuating the appropriate cylinders. We aren't using pneumatics this year so I just noticed that the solenoid vi's use enumerated constants (like the relay's) compared to boolean values like last year, but this should still work fine. We used this last year for a periscope on our robot that one of our drive team would toggle up and down with the joystick trigger. Good luck!
I changed your code to satisfy our double coil solenoid, but the problem with my code is that when the bimba is in its retracted state the solenoid clicks nonstop. I think that it is because my code is trying to make it do something but since it is already there it can't and just keeps trying. I've attached a copy of my solenoid code so any suggestions would be appreciated.
Attached Files
File Type: vi Teleop.vi (31.2 KB, 11 views)
Reply With Quote