My encoders let me drive straight to you.
Home
Go Back   Chief Delphi > Technical > Programming
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 Yesterday, 02:41
bmfrc bmfrc is offline
Registered User
FRC #5554
 
Join Date: Feb 2017
Location: Israel
Posts: 11
bmfrc is an unknown quantity at this point
encoder PIDController and set

Hi,

I'm trying to figure out the how to operate and use an encoder to maintain speed on our shooter.
  1. SetDistancePerPulse() - If our wheel circumference is 10cm then we should set SetDistancePerPulse(10/NUMBER_OF_PULSES). Using the GetDistance() will get the total distance in cm and the getrate() will get the cm per second. is that correct?

  2. pulses - We are using http://www.andymark.com/E4T-OEM-Mini...-p/am-3132.htm.
    The spec indicate:
    Cycles per Revolution: 360
    Pulses per Revolution: 1440
    Which one should we use? when we use 10/1440 we get rates and distanses that doesnt make sense. my feeling is that 10/250 make more sense.

  3. decoding scale - what exactly is the decoding scale and how does it affect our calculation?

  4. PIDController.SetSetpoint() - If we trying to get 10cm per second should we set PIDController.SetSetpoint(10) ?

Thanks a lot for your help!
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 15:31.

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