View Single Post
  #1   Spotlight this post!  
Unread 02-02-2015, 16:03
RobHammann RobHammann is offline
Registered User
FRC #5143
 
Join Date: Jan 2015
Location: Grand Rapids MN
Posts: 8
RobHammann is an unknown quantity at this point
Re: Declaring DoubleSolonoid

Thanks, they do declare now, however...

Quote:
Originally Posted by one_each View Post
For classes, use the -> operator to access methods and fields from the pointer.

I really don't understand these pointers, when I try to set the solenoids using something like

grabSolenoid.set(DoubleSolenoid::kForward);

it says "request for member 'set' in '(((Robot*)this))->Robot::grabSolenoid', which is of pointer type 'DoubleSolenoid' (maybe you meant to use '->' ?)"

where do I put the ->?
Reply With Quote