Go to Post It isnt about winning and losing (although getting the trophies and medals are nice) - Winged Wonder [more]
Home
Go Back   Chief Delphi > Technical > Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #13   Spotlight this post!  
Unread 13-03-2013, 23:23
xmaams xmaams is offline
Registered User
AKA: Sam Dietrich
FRC #2587 (Discobots)
Team Role: Mentor
 
Join Date: Feb 2013
Rookie Year: 2012
Location: Houston
Posts: 12
xmaams will become famous soon enoughxmaams will become famous soon enough
Re: bang-bang control with Talon

Quote:
Originally Posted by billbo911 View Post
Slow loop timing could easily cause both overshoots and undershoots.
We had a lot of this at first. When we set up bang-bang on our shooter, our encoder outputs were jumping around by about 300 rpm, and even with direct drive off a miniCIM, bang-bang didn't sound very good.

Eventually we convinced the rpm function of the counter class to use the FPGA timer, and the numbers settled down very well.

Then by having the code attempt to update the Talon output every millisecond we eliminated almost all of the overshoot and variation. It is changing state so quickly now that the motors sound just as smooth as ones receiving constant PWM.
Reply With Quote
 


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 07:12.

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