Hi everyone, Rookie team here. We are happy to say as of Saturday night we have a driving robot that can pick up balls and throw them. The way our intake and catapult mechanisms work, once the ball is picked up, the only way out is by our pneumatic catapult. Obviously we can open the solenoid to fire the catapult, but we really don't want to use that for passing. We would prefer a way to quickly pulse the solenoid, so as to just tip the catapult up, dumping the ball out. Looking around in the forums found little, but I do think I came to the conclusion that this code would have to be put into the Periodic Tasks VI.
(TL;DR, I want to pulse a solenoid on and off)
I don't have access to the robot at the moment to try this, but would this work? Is there a better way to do this? Am I just a crazy person? This code is in Periodic Tasks. The idea being that as long as the button is held down, the solenoid is turned on and off over and over again. Exact duration would change with experimenting.
Thanks,
Jarren