To you - I pledge my calculators, my codes, and my safety glasses. I'll be your Super Nerd forever!
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, 06:06
bmfrc bmfrc is offline
Registered User
FRC #5554
 
Join Date: Feb 2017
Location: Israel
Posts: 11
bmfrc is an unknown quantity at this point
PIDController - control speed vs distance - SetSetpoint

Hi,

I need help in understanding how to measure distance vs measuring speed.

We are using the following encoder:
http://www.andymark.com/E4T-OEM-Mini...-p/am-3132.htm

The encoder can give information on speed (rate) and distance.

I looked into FIRST example on this page:
http://wpilib.screenstepslive.com/s/...rs-pid-control

Please help me understand what value should we set in the SetSetpoint() method and how the controller knows to measure the distance or the rate?

Thanks!
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:30.

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