Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Solenoid only runs once (http://www.chiefdelphi.com/forums/showthread.php?t=135710)

Jeremy2145 12-03-2015 09:02

Solenoid only runs once
 
https://github.com/Jeremy2145/2015Compressor

In OI, 2 buttons are set to open and close the solenoid, but after it opens and closes once it no longer opens and will fire randomly. Why?

fovea1959 12-03-2015 10:00

Re: Solenoid only runs once
 
lotta code there. Which button, command and actuator are the problem children?

Jeremy2145 12-03-2015 12:17

Re: Solenoid only runs once
 
The compressor and solenoid are in slide. The two commands, GripTote and UnGripTote, use the solenoid. Those commands are bound to buttons in the OI.

notmattlythgoe 12-03-2015 12:20

Re: Solenoid only runs once
 
You need to make sure both of those commands require the slide subsystem. What's happening is both commands are running at the same time.

Either that or make sure they both finish after one execution. To do this move the actuation of the slide into the initialize method and return true from isFinished();

Jeremy2145 12-03-2015 12:50

Re: Solenoid only runs once
 
YES! That worked.


All times are GMT -5. The time now is 10:27.

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