|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
ok hi all
ok i am a part of our mechanical team, and our programmer isnt here. we ship in two days and our spike relay isnt programmed. can someone please show me the nessacary coding for it. if it helps we are using java. |
|
#2
|
||||
|
||||
|
Re: spike relay code urgent
Place the flowing code where your joysticks are being declared
Code:
Relay spike = new Relay(4,1); Code:
/*
assumes that you want the spike to turn on if the triger is pressed on a joystick named m_leftStick
*/
if(m_leftStick.getRawButton(1)){
spike.set(Relay.Value.kForward);
}
else{
spike.set(Relay.Value.kOff);
}
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| spike relay problem? | Maxpower57 | Electrical | 15 | 09-04-2012 19:18 |
| Spike relay code not working | wywern209 | Programming | 9 | 05-02-2010 22:04 |
| Relay (Spike) | elbuo | Electrical | 2 | 09-02-2009 20:36 |
| Spike Relay Input | nwagers | Electrical | 3 | 16-07-2002 22:23 |