|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Robot Runs in full Reverse
I am using the camera code from kevin's website and have modified it alot, i have been using the Arcade 1-Joystick drive that is commented out in the defult
code. My problem started when i tried to switch two a Two Joystick drive system. My problem is the robot runs in full reverse. So i made my Program print the values from p1_y, p2_y, pwm03, and pwm04(the drive pwms). But what confuses me is the p1_y and p2_y print as 127 when the joystick is centered but pwm01 and pwm02 = 0. if i move the joystick the pwm values do not change. My code is below: pwm03 = Limit_Max(p1_y); pwm04 = Limit_Max(p2_y); my 1 joystick code is below: pwm03 = Limit_Max(p1_x + p1_y - 127); pwm04 = Limit_Max(p1_x - p1_y + 127); Can anybody help? |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [moderated]: A Challenge: YOU Rewrite G25 | Tom Bottiglieri | General Forum | 10 | 30-03-2005 21:18 |
| How much do you design before kickoff? | Allison K | General Forum | 19 | 07-12-2004 21:32 |
| what kind of robot will win? | Bcahn836 | Championship Event | 44 | 12-04-2004 00:02 |
| Help On Coding 2K1 Controller | GregTheGreat | Programming | 9 | 05-12-2003 18:35 |
| about how Drive Train push the robot... shouldn't the force accelerate the robot? | Ken Leung | Technical Discussion | 12 | 26-11-2001 09:39 |