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!
