View Single Post
  #25   Spotlight this post!  
Unread 12-04-2012, 18:12
billbo911's Avatar
billbo911 billbo911 is online now
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,349
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Shooters: What have you learned?

Quote:
Originally Posted by Ether View Post
Control the shooter wheel speed with a bang-bang controller rather than PID.

Tip of the hat to Martin for reminding me of this.


Based on the above linked paper, I threw together the LabView "equivelent".
I chose to set it up with a counter instead of an encoder, but you can still use an encoder as the input to the counter. With this configuration, you can also use a simple Banner sensor and a piece of Retroreflective tape on the wheel if you would like. I also chose to use the 10ms. periodic loop.
With this version, you should be able to modify the loop delay without changing anything else. It will compensate for the change in interval time.

Please test this before you use it. This is built purely in code only and has not been debugged on actual hardware......yet.

[EDIT] I realized I had not made a compensation in the slew rate limiter to take into account different loop execution times. So, in the next version I'll have it added. [/EDIT]

[EDIT#2] See my next post, post #36, for the updated version of the Periodic tasks.vi. [/EDIT#2]
Attached Thumbnails
Click image for larger version

Name:	Bang-Bang-Begin.vi.jpg
Views:	83
Size:	30.1 KB
ID:	12596  Click image for larger version

Name:	PeriodicTasks.vi.jpg
Views:	67
Size:	73.3 KB
ID:	12597  
Attached Files
File Type: vi Begin.vi (38.3 KB, 5 views)
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist

Last edited by billbo911 : 13-04-2012 at 12:21.