Go to Post You know you're overdosed on FIRST when you see the thread titled "team 228 can and bottle drive" and think "what kind of crazy drivetrain is that?" - Joe G. [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Relay (Spike) elbuo Electrical 2 09-02-2009 20:36
Spike relay question Zack Briggs Electrical 17 19-02-2008 14:48
using SPIKE relay module with Fisher Price motors 1574aviad Motors 4 27-01-2005 01:49
Spike Relay Input nwagers Electrical 3 16-07-2002 22:23


All times are GMT -5. The time now is 13:12.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi