Go to Post Just because you haven't witnessed parts leaving the flywheel yet, doesn't mean it won't happen. - Al Skierkiewicz [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-01-2013, 15:00
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,058
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Shooter Problem

Quote:
Originally Posted by MrForbes View Post
This is what we're planning to try tomorrow. And we'll set it up so we can play with the speeds, by using chain drive and computer speed control, eventually with a PID loop of some type.
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.

  #2   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
  #3   Spotlight this post!  
Unread 14-01-2013, 11:09
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,058
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Shooter Problem

Quote:
Originally Posted by Woolly View Post
If you get flack from your mechanical/fabricators for "slamming" the motor...
Seriously? Are you saying there was some visible or audible manifestation?

If so, check the following and fix if necessary:

- make sure the motor controller jumper is in the "coast" position (not "brake").

- make sure you are running the control loop fast enough (10 ms is good)

- make sure your sensor is capable of giving an up-to-date speed reading faster than your control loop iteration rate




  #4   Spotlight this post!  
Unread 14-01-2013, 15:34
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
Seriously? Are you saying there was some visible or audible manifestation?

If so, check the following and fix if necessary:

- make sure the motor controller jumper is in the "coast" position (not "brake").

- make sure you are running the control loop fast enough (10 ms is good)

- make sure your sensor is capable of giving an up-to-date speed reading faster than your control loop iteration rate




I didn't know what I know now when I made that control loop last year, and I just dropped it in autonomous and teleop. Obviously a case of it not running fast enough. Still, even our poor bang-bang controller was better than a PID for this application.
__________________


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


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 00:42.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi