|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Kevin's Navigation Script Working for Your Team?
Anyone using Kevin's navigation script? How's it going for you? Was you able to get it to work for your team? At one point our team was doing ok then we went away from the software and now we are back to it but can't seem to get the PID to settle down. Actually the PID does settle down, but when we issue a CMD_DRIVE 1500 in the command list, the robot does not drive straight nor is it going the right direction, it's going backwards. We've changed the varibles:
/* Set these to change the motor direction, 1 = forward, -1 = backward. */ #define LEFT_DIR (-1) #define RIGHT_DIR (1) to /* Set these to change the motor direction, 1 = forward, -1 = backward. */ #define LEFT_DIR (1) #define RIGHT_DIR (-1) But it still goes backwards and doesn't drive straight. Also.... Does anyone know what these varibles do for sure? /* Motor defines */ #define LEFT 0 #define RIGHT 1 I am bit confused at what we've got now. I am certain our encoders are working, checked them with an O-Scope. Any ideas or success stories anyone would like to share about getting your NAV code working? Any trouble shooting tips would be appreacaited. |
|
#2
|
||||
|
||||
|
Re: Kevin's Navigation Script Working for Your Team?
Quote:
-Kevin |
|
#3
|
||||
|
||||
|
Re: Kevin's Navigation Script Working for Your Team?
Quote:
Thanks for the tips Kevin. I'll double check this with our crew tonight and see what we can find. Any comments on what these varibles do? /* Motor defines */ #define LEFT 0 #define RIGHT 1 Also, FYI...last night we have a working camera and Kevin Nav script that we are willing to share. We want to clean up the logic flow of the function calls, but from what we can see, we've got it working. Minus the backward glitch above. Our team will start a new thread on CD once we feel comfortable and have tested all our combo-code to release to everyone. |
|
#4
|
||||
|
||||
|
Re: Kevin's Navigation Script Working for Your Team?
Quote:
-Kevin |
|
#5
|
|||
|
|||
|
Re: Kevin's Navigation Script Working for Your Team?
Quote:
|
|
#6
|
||||
|
||||
|
Re: Kevin's Navigation Script Working for Your Team?
Quote:
-Kevin |
|
#7
|
|||
|
|||
|
Re: Kevin's Navigation Script Working for Your Team?
Also check your encoders wires, and make sure they are going to the correct wheels, and PWM ports.
|
|
#8
|
|||||
|
|||||
|
Re: Kevin's Navigation Script Working for Your Team?
Quote:
Just a guess: If the motors are wired so that positive pwm values make both wheels turn the same direction, then I think the LEFT_DIR and RIGHT_DIR values need to be the same. By changing both of them, they are still different, and you haven't really changed anything. There are four combinations to try! |
|
#9
|
|||||
|
|||||
|
Re: Kevin's Navigation Script Working for Your Team?
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The Death of FIRST | Anton Abaya | General Forum | 23 | 03-05-2006 17:18 |
| Thank a Team with an i-Pod !!! | OZ_341 | General Forum | 8 | 20-04-2004 23:57 |
| Disqualifications | archiver | 1999 | 13 | 23-06-2002 21:53 |
| Competition at UTC New England | Rick Gibbs | Regional Competitions | 6 | 02-04-2002 09:25 |
| Novi Kickoff Seminar List (Tentative) | Joe Johnson | General Forum | 1 | 05-12-2001 13:47 |