View Single Post
  #4   Spotlight this post!  
Unread 15-04-2011, 20:20
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Does this look Okay?

Ok, that's what the top section of code will do.

The bottom section will extend (or retract) a cylinder when you push a button and keep it there as long as you hold the button. When you let go, the cylinder will move back, basically making your double solenoid act like a single.

The Joystick Open should go in Begin.VI with the output wired to a Joystick Set RefNum. Then use a Joystick Get RefNum in Teleop.VI and wire the output of that to the Joystick Get.

Pattern your joystick code off of the existing code for your primary joystick, all you want to change in the second copy (upstream of the Joystick Get at least) is the USB port and RefNum name.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
Reply With Quote