|
Programming Victors in Java
The window motor on our robot is not working. Is the problem in our program??
if(operator.getRawButton(6))
{
Pulley.set(-1.0);
}
else if(operator.getRawButton(3))
{
Pulley.set(1.0);
}
else
{
Pulley.set(0);
}
if(operator.getRawButton(4))
{
Scoop.set(-1.0);
}
else if(operator.getRawButton(5))
{
Scoop.set(1.0);
}
else
{
Scoop.set(0);
}
if(operator.getRawButton(1))
{
Window.set(-1.0);
}
else if(operator.getRawButton(2))
{
Window.set(1.0);
}
else
{
Window.set(0);
}
Any help would be greatly appreciated!
Thanks!!
|