|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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? |
|
#2
|
||||
|
||||
|
Re: Solenoid only runs once
lotta code there. Which button, command and actuator are the problem children?
|
|
#3
|
||||
|
||||
|
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.
|
|
#4
|
|||||
|
|||||
|
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(); Last edited by notmattlythgoe : 12-03-2015 at 12:22. |
|
#5
|
||||
|
||||
|
Re: Solenoid only runs once
YES! That worked.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|