View Single Post
  #6   Spotlight this post!  
Unread 03-02-2009, 18:56
ellisk ellisk is offline
Registered User
FRC #1540
 
Join Date: Dec 2008
Location: Vancouver, WA
Posts: 41
ellisk is on a distinguished road
Re: Using encoders for traction control help

So, if I understand your algorithm correctly, it works like this (for each side):

1. Get the acceleration according to each encoder on the transmission
2. If the acceleration is too high, compute the ratio:

maximum_acceleration / real_acceleration

where maximum_acceleration is determined experimentally. Then, multiply the desired motor value by said ratio.

Is that right? So do you just ignore the velocity according to the encoders on the omni wheels (undriven wheels)? It sounds simple, but it also sounds like it could work (occam's razor ftw).