Go to Post An innovative strategy based off of good scouting beats a #1 alliance any day. - rufu5 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-02-2015, 16:58
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
Exclamation Code Problem - Java

The Drive Train works and runs as intended but the Buttons don't. When we press the buttons nothing happens; everything is hooked up correctly so I am unsure what is wrong
[code]
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());




}
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:49.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi