View Single Post
  #10   Spotlight this post!  
Unread 17-02-2015, 16:40
AnnaliseDonavan AnnaliseDonavan is offline
Registered User
FRC #4284
 
Join Date: Jan 2015
Location: Cincinnati,Ohio
Posts: 20
AnnaliseDonavan is an unknown quantity at this point
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());




}