View Single Post
  #1   Spotlight this post!  
Unread 12-02-2009, 06:24
windell747 windell747 is offline
Registered User
FRC #2477
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2001
Location: Hawaii
Posts: 158
windell747 will become famous soon enoughwindell747 will become famous soon enough
Problems with using 330's goal tracking code

Hi, We took team 330's goal tracking code and made modifications so that the X axis output would be to control a victor for a turret. We pretty much just removed the Y-axis PID control loop and are using only the X-axis PID control loop for control the position of a turret. When we run the code, the bot finds the target and oscillates left and right. I increased the integral gain to reduce the steady state error, but there was no improvement. I also tried playing around with the proportional and derivative gains, but there was also no improvement.

Has anyone attempted what I'm doing and might know the source of my problem?

I attached two screenshots of my code for reference. As an incentive, feel free to use my ideas for your bot as well if you feel that they are useful to you. All the credit should go to team 330 though!
Attached Files
File Type: pdf goal_track_main.pdf (215.1 KB, 83 views)
File Type: pdf goal_track.pdf (169.9 KB, 68 views)

Last edited by windell747 : 12-02-2009 at 06:27.
Reply With Quote