Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   FRC Control System (http://www.chiefdelphi.com/forums/forumdisplay.php?f=176)
-   -   Can't Measure 5v off Relay pins (http://www.chiefdelphi.com/forums/showthread.php?t=154967)

rudun 08-02-2017 19:44

Can't Measure 5v off Relay pins
 
I am using this code to get a spike to work.

Code:

        public Robot() {
                lightSwitch = new Relay(2);
                //lightSwitch.setDirection(Relay.Direction.kForward);
                lightSwitch.set(Relay.Value.kOn);
               
        }

However am getting an orange/red light and no output. I have tried measuring the 5v off of the robo rio pins and am getting zero voltage. Going from fwd to gnd or rev to gnd, using a multi-meter. I am at loss at this point as why

GeeTwo 08-02-2017 20:13

Re: Can't Measure 5v off Relay pins
 
Typically, only the declarations go in the initializer routine. I don't know whether this will work at all, but it's not the right way; you want to put the set in a periodic method.

The relay ports will not be activated until the robot is enabled in any case. Have you enabled the robot?


All times are GMT -5. The time now is 12:56.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi