View Single Post
  #11   Spotlight this post!  
Unread 08-02-2008, 22:11
manderson5192 manderson5192 is offline
Registered User
AKA: Matt Anderson
FRC #0948 (Newport Robotics Group: NRG (pronounced eNeRGy))
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Bellevue, WA
Posts: 62
manderson5192 is on a distinguished road
Thumbs up Re: Bizarre Mecanum Programming Bug

We have successfully resolved our strafing issues without implementing either the gyro or encoders in a PID-type loop. We simply wrote code to cycle through all the possible PWM values and counted how many encoder counts the PWM value would produce per 10 loops. By graphing the Rotations vs. PWM data, we were able to see that the problem lay not so much in the speeds of different wheels but in where the real "deadzone" for the drivetrain was. All we had to do was shift the PWM deadzone center from 127 to 133 and we had our problem fixed. Just to note, our battery is mounted in the geometric center of the drive base, so uneven weight distribution is a negligible problem for us. I just thought should let everyone know this so that others can diagnose how to solve any arcing problems while strafing with mecanum wheels. Graphing the RPM vs PWM data really showed us exactly what we needed to do.

Thanks for the advice guys!

-Matt