View Single Post
  #9   Spotlight this post!  
Unread 17-02-2009, 14:01
X-Istence X-Istence is offline
Melt the RC controller!
AKA: Bert JW Regeer
no team
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Montville
Posts: 151
X-Istence will become famous soon enoughX-Istence will become famous soon enough
Send a message via AIM to X-Istence Send a message via MSN to X-Istence
Re: Trouble using Spike Relay

What I found is that I had to use the following:

Code:
Relay * motorRelay;

motorRelay = new Relay(...)

motorRelay->SetDirection(Relay::kForwardOnly);
motorRelay->Set(Relay::kOn);
Without the set direction, or even by giving it a value like Relay::kForward it would not move.

After this everything worked just fine, not sure why.

However if you are saying your digital sidecar is showing the correct value, and yet the spike is not re-acting, I would not know, have you tried a different relay output?
__________________
My Blog!
Reply With Quote