View Single Post
  #3   Spotlight this post!  
Unread 25-01-2015, 17:33
JefferMC JefferMC is offline
Registered User
AKA: Jeff Corbett
FRC #1319 (Flash)
Team Role: Mentor
 
Join Date: Nov 2012
Rookie Year: 2005
Location: United States
Posts: 44
JefferMC will become famous soon enough
Re: Double Solenoid error in Eclipse

Quote:
Originally Posted by GeeTwo View Post
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);
Close, "Value." isn't necessary, the correct parameter value would be:

DoubleSolenoid::kForward

Keep in mind that if you should be able to type DoubleSolenoid, the two colons and pause, Elipse should list members of DoubleSolenoid for you. I believe the constants appear near the end.

Last edited by JefferMC : 25-01-2015 at 17:33. Reason: remove a period that may cause confusion.
Reply With Quote