![]() |
Code to increase speed when joystick is pushed further
Right now, I just have tank drive-2 motors, 2wheel drive setup, with two joysticks. No matter how far the joystick is pushed forward or backward, the motors turn the same speed. How can I set it up so that when pushed a little, the motor goes a slower speed, than pushing the joystick full throttle?
|
Re: Code to increase speed when joystick is pushed further
They aren't always going the same speed watch the LEDs on the victors full forward is green and full rev is red and anything in between is off. If you are just touching the joysticks and its going full speed something is wrong.
|
Re: Code to increase speed when joystick is pushed further
Some things to look at. (If I am starting too simple, bear with me because some people reading this may need the info.) Did you initalize the motors in the "Initialize" portion of the program? This sets the correct PWM port to the motors. Second, did you put the "2 motor tank control" in the operator's portion? Did you set the variables in the tank control? Most inputs are self explanatory. If you have done this, you are past my knowledge.
|
Re: Code to increase speed when joystick is pushed further
Quote:
|
| All times are GMT -5. The time now is 04:13. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi