View Single Post
  #2   Spotlight this post!  
Unread 29-01-2008, 11:43
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,170
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: Please help with some questions~new programmer

Off the top of my head it sounds like you are using tank drive mode with 2 joysticks. So the left and right motors are controlled by the y axis of 2 joysticks.

What gear tooth code do you have? Where did you get it? In general, the gear tooth sensor is hooked up to a digital input that generates an interrupt and you count the number of teeth passing by with each interrupt. So there are two pieces of the code, one in an interrupt context and another in your user routines that accesses and uses the count. But we need a little more information to be able to help you.

HTH