We are having an issue getting our relays to work. We are using a spike relay to move a motor. We believe everything is connected correctly, as the light on the relay is on. Thus we think the problem is in our code:
Code:
class RobotDemo : public SimpleRobot
{
RobotDrive myRobot; // robot drive syste0m
Relay feeder;
public:
RobotDemo(void):
feeder(5, Relay::kForwardOnly)
void OperatorControl(void)
{
while (IsOperatorControl()){
feeder.Set(Relay::kOn);
feeder.Set(Relay::kForward);
}
}