![]() |
DoubleSolenoid question
Alright, so i'm working on just re-writing our 2015 robot's code so that it's a lot cleaner and whatnot, so future students can see a good example of a good project.
my question - one that i ran into during build season but never tested - is this: if i instantiate a double solenoid object, then put it in the Value.kForward position manually in teleop, then turn the bot off and re-upload the code, will the code be able to recognize that it is in the Value.kForward position during disabled? the order of code being run: first time: Code:
public void RobotInit(){ |
Re: DoubleSolenoid question
No, it would not remember the setting after a reboot. Any new solenoid object always initializes to kOff. So it would print "it isn't or we don't know".
|
Re: DoubleSolenoid question
While the software wouldn't know, the hardware would probably still be in the same state. Double solenoids only change state when strobed, or when the little manual button is pressed - AND the supply port is pressurized. (Or they're taken apart,)
|
Re: DoubleSolenoid question
Quote:
Quote:
|
Re: DoubleSolenoid question
Quote:
|
Re: DoubleSolenoid question
Quote:
|
Re: DoubleSolenoid question
Quote:
Quote:
|
Re: DoubleSolenoid question
Quote:
Back to the point, for which I should have been more clear, was specifically for dual solenoid valves. You can buy a spring centered dual solenoid valves (mono stable). If you use one in FRC, the center section would have to be able to vent the discharge ports when system pressure is released. The spring return single solenoid valves also has to be able to vent the discharge ports when pressure is released. Not all do. All of this is not really relevant to what is essentially a control question. I generally prefer the single solenoid valves because they take one less output to do mostly the same thing. |
| All times are GMT -5. The time now is 10:21. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi