|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#10
|
|||
|
|||
|
Re: Robot Code Problem ** Again**
Would this be a better way to set it up ? The template that I am using dose not have a OI
public void teleopPeriodic() { Drive.arcadeDrive(drivestick); new JoystickButton(joystick, 1).whenPressed(new ElevatorOff()); new JoystickButton(joystick, 2).whenPressed(new ElevatorOn()); new JoystickButton(joystick, 3).whenPressed(new ElevatorReverse()); new JoystickButton(joystick, 4).whenPressed(new ArmsOut()); new JoystickButton(joystick, 5).whenPressed(new ArmsIn()); new JoystickButton(joystick, 6).whenPressed(new ArmsVerticalIn()); new JoystickButton(joystick, 7).whenPressed(new ArmsVarticalOut()); new JoystickButton(joystick, 8).whenPressed(new BlueLightShow()); new JoystickButton(joystick, 9).whenPressed(new LigthShowOn()); new JoystickButton(joystick, 10).whenPressed(new RedLightShow()); new JoystickButton(joystick, 11).whenPressed(new LightShowEnd()); } |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|