View Single Post
  #5   Spotlight this post!  
Unread 30-12-2012, 11:46
Secretspy97 Secretspy97 is offline
Registered User
FRC #1126
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2009
Location: New York
Posts: 25
Secretspy97 is an unknown quantity at this point
Re: Programming for a Shifting Gearbox

We used shifting on our 2011 robot. Our drive train was a 6 wheel tank drive with omni-wheels in front. We mounted encoders on each-side which told us the speed of each side of the robot. If our encoders were saying that both side of the robot were above a certain speed (can't be turning) than we would shift up. If the encoders were going slower then another desired speed then we would shift down. One problem with shifting and using encoders is that shifting causes the robot to slow down briefly. This could cause the robot to isolate between low and high gear. To fix this problem you need two separate "if statements" to shift. (For example you shift up when going faster then 6 ft/second and shift down when going slower then 5 ft/second). Our second problem with shifting was that the gears didn't want to mesh when shifting at high speeds. We fixed this problem by setting both motors to 0 for 0.1 second before shifting.

Hope this helps!
__________________
WHAT TIME IS IT?
1126