Go to Post The Manual is the "requirements document" for your project. - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 9 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 27-01-2015, 19:09
hades948 hades948 is offline
Registered User
FRC #3591
 
Join Date: Feb 2014
Location: Ohio
Posts: 2
hades948 is an unknown quantity at this point
PID with encoders

We cannot figure out exactly how to set up the PID using the Talons. We've been looking through the documentation for the PID in the talons. We do not understand how the PID knows what the encoder position is and what the ticks per revolution is set to. Is there somewhere we can pass that information to the talons or do they magically know?

Thanks!
Tyler Royer (FRC Team 3591)
EDIT: we are using mecanum drive and cant figure out how PID interfaces with mecanum in robot drive

Last edited by hades948 : 27-01-2015 at 19:16. Reason: clarification
Reply With Quote
  #2   Spotlight this post!  
Unread 27-01-2015, 19:30
James Kuszmaul James Kuszmaul is online now
NEFIRST CSA
FRC #0971 (Spartan Robotics)
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Worcester, MA
Posts: 61
James Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud of
Re: PID with encoders

Quote:
Originally Posted by hades948 View Post
We cannot figure out exactly how to set up the PID using the Talons. We've been looking through the documentation for the PID in the talons. We do not understand how the PID knows what the encoder position is and what the ticks per revolution is set to. Is there somewhere we can pass that information to the talons or do they magically know?

Thanks!
Tyler Royer (FRC Team 3591)
EDIT: we are using mecanum drive and cant figure out how PID interfaces with mecanum in robot drive
First of all, to be clear, you are talking about the new CAN Talon SRXs?

Second, much of this is described in the Software reference manual available through VEXPro's website.

To answer your question, it knows the encoder position because the encoder should be plugged straight into the talon and it can count encoder ticks. And the talon does not actually know the number of counts per revolution; instead it just works in units of encoder ticks. So you will have to convert between revolutions and encoder ticks yourself and give the CANTalon class goals in terms of encoder ticks (see section 21.8 of software reference manual).
__________________
FRC971 (Student) 2011-2014
FRC190 (College Mentor-ish) 2014
WPILib Development 2014-present
Reply With Quote
  #3   Spotlight this post!  
Unread 27-01-2015, 20:45
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,025
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: PID with encoders

Quote:
Originally Posted by James Kuszmaul View Post
(see section 21.8 of software reference manual).
See section 17.1 too


Reply With Quote
Reply


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 08:35.

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