|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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?
|
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
|||||
|
|||||
|
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.
|
|
#4
|
|||
|
|||
|
Re: Code to increase speed when joystick is pushed further
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problems when combine ADC code && camera code | nirhaim1942 | Programming | 1 | 24-01-2007 06:58 |
| Gradual Speed Increase | Booger | Programming | 2 | 24-07-2006 15:44 |
| Joystick Wheel Code | Vashts6583 | Programming | 1 | 30-01-2006 20:22 |
| Gradual increase in speed? | Kevin Rugani | Programming | 1 | 27-03-2003 21:36 |
| One Joystick Code | fs_2002 | Technical Discussion | 3 | 16-01-2002 00:47 |