Is there any way to add in the code so that we start with the pnuematic outwords
Reverse the solenoids
I may be misunderstanding this but are you talking about having them disengaged but when you start, they engage? Or are you talking about having them always reverse actuated? If you are looking for the former, I know that for EasyC, all you would do is engage your pneumatics in the “Initialize” tab. This means that as soon as the cortex connects, it will carry out the action. Basically you could just have a wait for maybe 2 seconds to make sure you are clear of the robot then the pneumatics will fire. You can do this off the field so then as soon as you put it in the field, your pneumatics are engaged and ready to go. Is this what you are asking for?
normally you hook up the solenoid and the code is sending an output “0” adn the piston is rectracted. If you want it to start extended, just change “0” to “1” and make the other button or other command output “0”. Basically switch 0 and 1
This problem is really simple to solve with only one line of code to write…most likely…anyway all you have to to is type for example:
SensorValue[pneumatic] = 1; right into the “pre_auton” part of the program. This is using robotc and the competition template.
= 1; right into the “pre_auton” part of the program. This is using robotc and the competition template.
This is what I thought but wasn’t sure thanks