|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Programming Help- 2 Motor 2 joystick Drive System
Can someone help us use change the default code from a one joystick operation to a two joystick two motor drive system?
We will be using a tank drive system. We would like to see some sample code. |
|
#2
|
|||
|
|||
|
Re: Programming Help- 2 Motor 2 joystick Drive System
Team 166 just posted some of there code, and it included two-joystick drive. May be worth checking out!
|
|
#3
|
|||
|
|||
|
Re: Programming Help- 2 Motor 2 joystick Drive System
Quote:
Code:
pwm01 = p1_y; pwm02 = p2_y; When both joysticks are forwards, both motors are forward and the robot goes forward. When both are back, the robot goes backwards. When one is forward and one is backwards, the motors move in opposite directions and the robot twists clockwise or counterclockwise. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Direct Drive Four Motor System | Collin Fultz | Technical Discussion | 42 | 02-11-2006 12:03 |
| 1 Joystick Drive | or yaniv | Programming | 3 | 19-01-2005 14:18 |
| Drive System Animation Project help is needed | Brian Lesser | Technical Discussion | 4 | 12-10-2004 17:09 |
| Control System, Joystick mod? | Jordan A. | Technical Discussion | 16 | 13-02-2002 02:29 |
| Quick Start Guide - Drive System Help for Rookies | Nuts4FIRST | Technical Discussion | 5 | 31-10-2001 14:42 |