Go to Post So the bar is set insanely high. Probably unachievably high for some of us. But what a shame it would be to lower it. - pfreivald [more]
Home
Go Back   Chief Delphi > Technical > Programming
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
  #6   Spotlight this post!  
Unread 28-01-2010, 20:06
wywern209 wywern209 is offline
Registered User
FRC #2202
 
Join Date: Jan 2009
Location: brookfield,WI
Posts: 4
wywern209 is an unknown quantity at this point
Re: Spike relay code not working

bool trigger= stick.GetRawButton(3);
float potentiometerreading= potentiometer.GetAngle();
if(trigger)
{
fan.Set(Relay::kForward);
}
if (potentiometerreading>0)
{
fan.Set(Relay::kOn);
}

----------
Here is the code we have right now. Our mentor is wondering if we should have used digital output instead of the relay.
 


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
C++ Sample Code not working... hm29168 CAN 5 27-01-2010 20:59
Not Really Working Vision Code linkhyrule5 NI LabVIEW 0 07-01-2010 18:45
Incrementation Code not working benhulett Programming 6 12-02-2007 17:39
2007 demo code not working thefro526 Programming 4 12-01-2007 23:43
Camera code not working.... DemonYawgmoth Programming 5 11-02-2006 09:21


All times are GMT -5. The time now is 21:30.

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