Quote:
Originally Posted by BananaKing1378
Hello! We are currently trying to set up a double acting solenoid in Eclipse.
First we create a DoubleSolenoid called Solenoid with the following line:
DoubleSolenoid Solenoid;
Next we construct it:
Solenoid(0,1);
Next, we try to set the Solenoid to forward. This is where the problem occurs. We are told that there is no member named "Forward". We have tried various ways of calling "set". Currently, we are using:
Solenoid.Set(DoubleSolenoid::kForward);
|
Sounds like you're using C++, since :: is not part of java.
Doing a bit of googling, I found that kForward is actually a member of the class "Value" defined within DoubleSolenoid. I have never written any c++, but as I read the docs online, my best guess at this line would be:
Solenoid.Set(DoubleSolenoid::Value.kForward);