|
Re: Relay Trouble
Right now the code to define a relay looks like this:
Relay *abcRelay;
abcRelay = new Relay(3);
The first line is globally defined and the second line is in a function called Init_Controls which is called from IRobot which is the constructor for the IterativeRobot class. Until I just checked the code, I was thinking that Init_Controls was called from RobotInit so this might be part of the problem but digital_inputs and solenoids are defined in the same function and work fine. It is the addition of the second line that kills the code.
|