![]() |
Simple Pnuematics Program Issue
Okay so I typed up a simple pnuematics program according to examples on WPILib to extend a cylinder for a second and then retract it.
Netbeans says that it "cannot find the symbol" when I say Code:
solenoid1 = new DoubleSolenoid(1, 2);Here is the program: Code:
/* |
Re: Simple Pnuematics Program Issue
Are you getting an error saying doubleSolenoid doesn't exist?
|
Re: Simple Pnuematics Program Issue
You never defined the object doubleSolenoid anywhere. You first used it inside the constructor, and then tried to use it in a method. You need to add the declaration of the object as an instance variable.
Try adding "DoubleSolenoid doubleSolenoid;" between the two lines which begin with public. |
| All times are GMT -5. The time now is 22:27. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi