Go to Post Continue? You mean we can quit? Why didn't someone say so! - tsaksa [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 Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 02-23-2016, 05:03 AM
pblankenbaker pblankenbaker is offline
Registered User
FRC #0868
 
Join Date: Feb 2012
Location: Carmel, IN, USA
Posts: 102
pblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of light
Re: Pneumatics not working

Try adding the following line to your robotInit() code after your shooter has been constructed:

Code:
LiveWindow.addActuator("Shooter", "Solenoid", shooter);
Deploy your program and put the driver station in "Test" mode instead of "Teleop" mode. This should give you a control to verify that you can operate the solenoid. If you don't see the control, that probably indicates there is an error (look in the console window of the DriverStation for a stack trace). If you see the control, but the solenoid doesn't respond, it indicates an electrical/physical issue.

Next, the code fragment you provided looks like it should work. However, it requires the operator to press and hold the buttons down in order to put the solenoid in the forward or reverse position. As soon as a button is released, the solenoid will go back to the off state - is that what you want it to do?
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 08:28 PM.

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