|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Need help getting spike relays working
Code:
Relay hopper;
hopper(1);
if(joybutton(1));
{
hopper.Set(Relay::kOn);
hopper.Set(Relay::kForward);
}
How do I get the spike relays working to test? |
|
#2
|
|||
|
|||
|
Re: Need help getting spike relays working
Ok, for my code, I don't need the kOn at all.
Is the PWM wire properly plugged into the Relay side of the DSC instead of the PWM side? Also when the button is pressed, what do the lights next to slot 1 of Relay do? And do the lights on the Spikes change? If the answer to the first 2 are yes, and the third no, try messing with the wire more (or a different 1). SideNote: WhooHoo, 100 posts! And congrats on your 1st post! |
|
#3
|
|||
|
|||
|
Re: Need help getting spike relays working
1. Yes but both were tried
2. the lights don't even come on 3. the lights don't change |
|
#4
|
|||
|
|||
|
Re: Need help getting spike relays working
By any chance are the lights on the Relay side red by even when not enabled?
Also are all 3 green lights on the DSC? |
|
#5
|
|||
|
|||
|
Re: Need help getting spike relays working
Quote:
KC |
|
#6
|
|||||
|
|||||
|
Re: Need help getting spike relays working
Relays won't do anything if the robot is disabled. Did you enable it from the Driver Station when you ran the test?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|