View Single Post
  #4   Spotlight this post!  
Unread 10-02-2007, 20:11
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
Re: Getting the camera to work in autonomous

Quote:
Originally Posted by dpick1055 View Post
I have the Camera_Handler() and Servo_Track() functions where you said to put them. I am using Kevin's bells and whistles code but when i enable debugging one of motors goes full forward and one goes full reverse (but that just could be because of how we have them mounted).
Enabling _DEBUG mode should not change how your 'bot reacts to anything (but it might; I've proven that with code, physical impossibilities become totally possible and what was extraordinary becomes a common occurance... ). Just for now, comment any code that deals with the motors during auton. Look in the terminal window and see what you get. You need to know if the camera is still getting initialized like normal. If it is, the problem is with your drive code.

My guess is that the camera is initializing fine, and as soon as it sees a target, it gives both motors 170, which, depending on your setup, motor polarity, transmissions, etc. might look like a full power spin. Try reversing one of the motors (it would be pwm15 = 84; I think).

JBot
__________________
Aren't signatures a bit outdated?