View Single Post
  #1   Spotlight this post!  
Unread 31-01-2005, 12:22
Chris_Elston's Avatar
Chris_Elston Chris_Elston is offline
Controls Engineer
AKA: chakorules
FRC #1501 (Team THRUST)
Team Role: Engineer
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Huntington, Indiana
Posts: 747
Chris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond repute
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.
__________________
Team T.H.R.U.S.T. 1501
Download all of our past robot's source code here:Repository

Favorite CD quote:
"That can't be their 'bot. not nearly enough (if any) rivets to be a 1501 machine." ~RogerR: Team #1369