Quote:
Originally Posted by Mr. E
how about something like this...
if button is pushed( relay 1 fwd)
( pwm01 = 155 //turn slow)
What would this code actually look like?
The problem is that using a spike makes writing my code alot easier. Wiring the motor through a victor, (which we have already done) is possible but not now
|
As was mentioned above, the Spikes are relays and only exhibit forward/off/reverse functionality. There is no slow speed. It's all or nothing. If you want a slower speed, you either need to change your gearing (probably not an option) or use a Victor to variably control your speed.
I don't understand your comment about the code being harder. It is essentially the same code, just on a different port (pwm vs relay).
For a relay, you probably have
whereas for a speed controller you would have what meatmanek suggested.
Code:
pwm01 = DRIVE_SLOW_FWD;
If you could clarify what you think would be harder, we may be able to offer up some better suggestions.