Go to Post There are only 4 seasons of the year my friend, build season, competition season, post-season and pre-season. - Tom Schindler [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
  #1   Spotlight this post!  
Unread 14-02-2013, 15:33
e10 e10 is offline
Registered User
FRC #3949
 
Join Date: Nov 2012
Location: Brampton
Posts: 5
e10 is an unknown quantity at this point
Relays not working

We are having an issue getting our relays to work. We are using a spike relay to move a motor. We believe everything is connected correctly, as the light on the relay is on. Thus we think the problem is in our code:

Code:
class RobotDemo : public SimpleRobot
{	
	RobotDrive myRobot; // robot drive syste0m
	Relay feeder;
	
public:
	RobotDemo(void):
		feeder(5, Relay::kForwardOnly)

	void OperatorControl(void)
	{
		while (IsOperatorControl()){
			
                                     feeder.Set(Relay::kOn);	
		           feeder.Set(Relay::kForward);
		}
	}
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


All times are GMT -5. The time now is 18:22.

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