Quote:
Originally Posted by Steve Warner
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.