Thread: Shooter Problem
View Single Post
  #5   Spotlight this post!  
Unread 14-01-2013, 01:54
Woolly's Avatar
Woolly Woolly is offline
Programming Mentor
AKA: Dillon Woollums
FRC #1806 (S.W.A.T.)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Springfield, MO
Posts: 512
Woolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond repute
Re: Shooter Problem

Quote:
Originally Posted by Ether View Post
Try P-only and crank the gain up to the sky*. If you've got enough inertia in the wheel, and you run the loop at 10ms, that's all the tuning you should need.


* this will mimic a bang-bang controller.

Yeah, I'd say that you might want to go with a bang-bang controller.

If you get flack from your mechanical/fabricators for "slamming" the motor, do what I did, add a linear cushion within ~3% of your target speed.
Ex. For a shooter wheel capable of 10,000RPM when you're over 300 RPM lower than your setpoint, you go 100% power, when you're 150 RPM Lower, 75%, Dead on 50%, 150RPM Higher 25%, 300RPM Higher 0%.

This will mimic the PID you're trying to use, and unless you really know what you're doing when PID tuning, will be half the headache.
__________________


Team 1806 Student: 2012-2013 | Mentor: 2013-Present