Thread: Relay Trouble
View Single Post
  #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