View Single Post
  #1   Spotlight this post!  
Unread 16-04-2010, 17:21
krudeboy51's Avatar
krudeboy51 krudeboy51 is offline
Only Programmer
AKA: kory
FRC #0369 (369)
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2010
Location: brooklyn
Posts: 151
krudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of light
Send a message via AIM to krudeboy51
CAN ANYONE HELP ME PLEASE??

I wrote a this code for our arm release:

Quote:
if ( (ThirdStick->GetRawButton(6) ) )

{
ArmRelease -> Set(1.0);
}
else
{
ArmRelease->Set(0.0);
}


if ( (ThirdStick->GetRawButton(7) ) )
{
ArmRelease ->Set(-1.0);
}
else
{
ArmRelease->Set(0.0);
}
this means when i press buton 6 on the joystick the motor is supposed to go forward, and when i press button 7 on the joystick the motor is supposed o go backwards. button 6 work, the motor goes forward, but when i press button 7 it doesnt move. i even tried:

Quote:
if ( (ThirdStick->GetRawButton(6) ) )

{
ArmRelease -> Set(1.0);

while (ThirdStick->GetRawButton(7)
{
ArmRelease->Set(-1.0);
}
}
else
{
ArmRelease->Set(0.0);
}
but it still dont work!
Reply With Quote