Thats easy
Replace # with the button numbers and motor with your victor
Code:
if (joystick.getRawButton(#) == true)
{
motor.set(0.25)
}
else
{
motor.set(0.0)
}
if (joystick.getRawButton(#) == true)
{
motor.set(-0.25)
}
else
{
motor.set(0.0)
}
Programmer Matt,
Gus Robotics, team228.org