Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Code to have speed of motors dependent on how hard you push the joystick (http://www.chiefdelphi.com/forums/showthread.php?t=53456)

JBotAlan 06-02-2007 12:35

Re: Code to have speed of motors dependent on how hard you push the joystick
 
Quote:

Originally Posted by AndrewN (Post 572813)
However the original FRC code only drives 13-16 without you doing extra coding.

Umm...scratch that, reverse it. PWMs 1-12 are automatically generated. All you say is
Code:

pwm01 = 0;
to make it go full speed one direction,
Code:

pwm01 = 255;
the other way. 13-16 are quirky and you really probably don't want to use them; you have to generate the signal yourself and tons of glitches were uncovered last year about using these channels.

JBot


All times are GMT -5. The time now is 14:21.

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