Go to Post Just like it is not all about the robots, it is not all about winning the Chairman's Award. - Paul Copioli [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 19-01-2012, 13:56
sircedric4's Avatar
sircedric4 sircedric4 is offline
Registered User
AKA: Darren
no team (The SS Prometheus)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Lousiana
Posts: 245
sircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond repute
PIDController, Counter Class, Speed Controls

We are starting to figure out how we want to control the speed of our shooter wheel and we are trying to figure out which sensor to use.

We are looking at a simple encoder that uses an LED and detector to give the number of pulses a wheel turns. This is all we really need and would be easier for us to use hardware wise than a quadrature encoder which is overkill for this application.

All we want is speed, and we want to use PIDController to tell the motor what to do to maintain that speed.

I am stuck at the usual complete lack of examples available in the WPI Users Guide. I believe I want to use the Counter class, but I don't know if its a PIDSource. Can PIDController control speed based or is it only for distance?

Does anyone have a sample bit of code that uses Counter and PIDController to control speed they can share please? Are we barking up the wrong tree?
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 13:39.

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