Go to Post Different strokes for different folks. - Madison [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 23-01-2013, 21:39
JCHS JCHS is offline
Registered User
FRC #3301
 
Join Date: Jan 2013
Location: Portland, IN
Posts: 9
JCHS is an unknown quantity at this point
Toggling Buttons in Java

Hi, I'm new to programming in Java and I'm trying to learn how to control our robot. We are using the command based robot in Netbeans. Using examples and threads I got the 4 motor drive to work. My next challenge is to toggle our shooter on and off. We are using two motors controlled by Talons, one in PWM 5 and the other in PWM 6.

So far I have managed to get the button to turn the motors on when held, and off when let go. Then when I tried to toggle it, all i could manage was on. It wouldn't turn off. I have looked through threads and online at www.github.com, but still don't understand how to toggle the button. I just don't know what to put in the OI, in the command, and in the subsystem.

Any help would be appreciated. Thanks for your time.

If you need more information or my code i'm more than happy to post it but wanted to get this thread out as soon as possible.
Reply With Quote
 


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 11:44.

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