Go to Post If it looks like an appendage, quacks like an appendage and moves like an appendage...it is an appendage... - Bob Steele [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

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-01-2011, 13:18
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: Relay Trouble

Quote:
Originally Posted by Steve Warner View Post
Right now the code to define a relay looks like this:

Relay *abcRelay;

abcRelay = new Relay(3);
Context means everything, please post your full source code. http://pastie.org if it is large. If there are secrets about your robot design in your source code, then trim and rename variables only as necessary, but do not change the context in which abcRelay is used.

Edit: I would recommend placing the assignment in your constructor.
Reply With Quote
  #2   Spotlight this post!  
Unread 20-01-2011, 20:15
Steve Warner Steve Warner is offline
Controls / Programming
FRC #0234 (Cyber Blue)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Indiana
Posts: 43
Steve Warner is an unknown quantity at this point
Re: Relay Trouble

Well I got to thinking about this problem and why we see it and nobody else does. We didn't have much code in the project we were using so I decided to delete it and start over. I carefully followed the instructions to add the example project FRC Default Program and that worked. I then added a relay and that also worked so I modified the project like before and everything is working. I thought we had done this a couple of days ago but apparently not.

I'm sorry I didn't think to try this before I posted but I'm glad it's working so we can move on. Thanks for your comments.
Reply With Quote
Reply


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 15: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