![]() |
Help with Programming Pnuematics
Hi,
Our team recently lost the majority of its programmers and where switching over to Java, i understand java a little and where using robot builder to make it a bit easier. My question is how do you code pneumatic's in general and even then how would you use that in robot builder? I lurked a little to try and find out but my adventure didn't give me anything. So any help would be Greatly appreciated!! |
Re: Help with Programming Pnuematics
Quote:
Code:
Solenoid solenoid1 = new Solenoid(1);Code:
solenoid1.set(true);Code:
solenoid1.set(false); |
Re: Help with Programming Pnuematics
thanks for the reply,
Our team is using a double solenoid would the code still be the same or would their be any minor changes? |
Re: Help with Programming Pnuematics
Quote:
Code:
DoubleSolenoid solenoid = new Solenoid(1, 2);Give that a try. You can also do something like: Code:
Solenoid solenoid1 = new Solenoid(1); |
Re: Help with Programming Pnuematics
Quote:
Code:
// Create a new DoubleSolenoid with the forward channel in port 1,Code:
// Set the solenoid to the 'forward' position |
| All times are GMT -5. The time now is 11:00. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi