|
|
|
| When you're around my motors redline. |
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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);
}
|
|
#2
|
|||||
|
|||||
|
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? |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|