I need help my team is using a single solenoid on our robot and me and our programming team is unsure on how to program one (we’ve always used double solenoids in the passed) any help,code, suggestions on material to read will be greatly appreciated.
thanks
from the Team 498 programming team and especially their captian(me)
I think single solenoids are actually easier. You just need to change one variable in the code so one position will look like this:
relay1_fwd = 1;
and the other position would look like this:
relay1_fwd = 0;
so if i wanted to i could do
#define punch_relay relay1_fwd
then
punch_relay = EXTEND; (presumming i set EXTEND = 1)
Sure, and you could even create a variable called RETRACT and set it to 0 and alternate EXTEND and RETRACT based on a button being pressed.
ok thanks for the help figured it was simple i just wanted to make sure i didnt make any mistakes