Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Spike Relays won't recognize values (http://www.chiefdelphi.com/forums/showthread.php?t=102716)

Waltonruler5 13-02-2012 15:48

Spike Relays won't recognize values
 
I'm trying to program two intake motors for our feed system using spike relays. I'm using the command template shown by BradAMiller. I defined each motor as a spike and mapped it to the proper channel. I create the method intakeOn and go to set the value but it tells me there's an error. I type
intakeMotor1.set(Relay.kForward);
and it tells me that the symbol "kForward" is not found in the class.

I programmed another subsystem to use the spikes without difficulty but we switched them to victors so I can't look back at the code.

Jared Russell 13-02-2012 15:53

Re: Spike Relays won't recognize values
 
Try:

Relay.Value.kForward

instead of Relay.kForward

Waltonruler5 13-02-2012 16:01

Re: Spike Relays won't recognize values
 
Lol I just figured that out myself. I tried it before without success but it worked this time. Thanks though.


All times are GMT -5. The time now is 22:42.

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