Thread: check code
View Single Post
  #2   Spotlight this post!  
Unread 07-02-2010, 23:45
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: check code

This code currently does not do anything different when the button is pressed. You want the motor to run at half speed or half the speed that the joystick commands when the button is pressed? The following assumes that you wanted the first option.

The 0.5 constant in the case statement is not connected to anything.

For the false case of each case block the joystick axis value should pass through the case block.

For the true case the 0.5 constant should be wired to the small orange block on the right edge of the case that will appear when you wire the joystick value through the false case.
__________________


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