View Single Post
  #3   Spotlight this post!  
Unread 30-01-2009, 17:09
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: How to control relays

Quote:
Originally Posted by Parthenon View Post
relay1.Set(relay1.kForward);
Try
Code:
relay1.Set(Relay::kForward);
instead. The thing before the double colon :: and the kForward constant isn't an object. It's a "namespace", in this case saying you want to use the named constant from the group of things associated with the Relay class.
Reply With Quote