|
Re: C++ Relay Code?
Ok, I will have another 5 hours or so with the Robot tomorrow, so I'll try getting it up and running then. I actually have a feeling that its a problem with my relay declaration, the reason I'm thinking this is because when I move the line
hRelay->Set(Relay::kForward);
to the TeleopPeriodic() function (essentially eliminating the need to press the trigger) the relay still remains inactive (however it is initialized I believe, the light is not flashing but solid orangeyred.)
What could cause this? Is there a limit on the number of variables etc. that can be declared in the robot? Anyway, once I'm back with the robot tomorrow I'll comment out mostly all of the code until it gets working, then slowly re-intigrate aspects of the code until it stops working and troubleshoot from there. If the schools internet is up I'll keep this updated, if its not I'll post an update tomorrow night. I need this working by Friday night so I really hope this can be resolved quickly
__________________
2009 - Waterloo Regional - Regional Finalist
2009 - Waterloo Regional - Engineering Inspiration Award
________________________
2009 Team Member 1334
|