Go to Post For example, you can make a car as safe as possible. It may get the highest safety ratings in it's class, but if you drive it off of a cliff there really isn't much you can do about that. - jmanela [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-02-2016, 21:17
Team5860-Alex Team5860-Alex is offline
Registered User
FRC #5860
 
Join Date: Jan 2016
Location: Algonac, MI
Posts: 22
Team5860-Alex is an unknown quantity at this point
Critical Talon Srx help needed

This is our rookie year and programming is off to a great start however we want to use encoders to do a series of commands. We have tried our best efforts, referred to the software manual and still cant get it to work. We do have an encoder read out and can find/reset the encoder position, however in teleop we cant get the motors to move at all. We are using digital quadrature encoders on the versa planetary gearboxes right to the CAN talon srx's. If we could get some code or code pictures to help out that would be much appreciated. the examples werent much success either
  #2   Spotlight this post!  
Unread 17-02-2016, 21:19
nickbrickmaster's Avatar
nickbrickmaster nickbrickmaster is offline
Not Allowed Near Power Tools
AKA: Nick Schatz
FRC #3184 (Blaze Robotics)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Eagan MN
Posts: 165
nickbrickmaster is an unknown quantity at this point
Re: Critical Talon Srx help needed

Are you using PID control or percent control?

Here's the Talon SRX software reference manual. There is some example code in there for whatever you are doing.

https://www.ctr-electronics.com/Talo...e%20Manual.pdf
__________________
I have approximate knowledge of many things.

FRC 3184: 2014-, FTC 10648: 2015-
  #3   Spotlight this post!  
Unread 17-02-2016, 21:34
Team5860-Alex Team5860-Alex is offline
Registered User
FRC #5860
 
Join Date: Jan 2016
Location: Algonac, MI
Posts: 22
Team5860-Alex is an unknown quantity at this point
Re: Critical Talon Srx help needed

Quote:
Originally Posted by nickbrickmaster View Post
Are you using PID control or percent control?

Here's the Talon SRX software reference manual. There is some example code in there for whatever you are doing.

https://www.ctr-electronics.com/Talo...e%20Manual.pdf
PID
  #4   Spotlight this post!  
Unread 17-02-2016, 21:35
TimTheGreat's Avatar
TimTheGreat TimTheGreat is offline
ArchdukeTim
FRC #1418 (Vae Victis)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Falls Church
Posts: 238
TimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura about
Re: Critical Talon Srx help needed

Quote:
Originally Posted by Team5860-Alex View Post
PID
Do you have any code?
__________________
There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.



2012 - Gracious Professionalism - Greater DC
2014 - Regional Finalist - Virginia | Industrial Design - Virginia | Regional Finalist - Greater DC
2015 - Innovation in Control - Greater DC
2016 - District Event Winner - VAHAY | Innovation in Control - VAHAY | District Event Winner - MDBET | Industrial Design - MDBET | District Champion - CHCMP | Innovation in Control - CHCMP
  #5   Spotlight this post!  
Unread 17-02-2016, 21:49
Team5860-Alex Team5860-Alex is offline
Registered User
FRC #5860
 
Join Date: Jan 2016
Location: Algonac, MI
Posts: 22
Team5860-Alex is an unknown quantity at this point
Re: Critical Talon Srx help needed

this is the code

https://www.dropbox.com/s/aid95e1i31...87%29.png?dl=0
  #6   Spotlight this post!  
Unread 17-02-2016, 22:24
Matt-T-FRC Matt-T-FRC is offline
Electrical Engineering Student
AKA: Matt Tisovic
FRC #6181 (Northwest State Cryptic Cyborgs)
Team Role: Mentor
 
Join Date: Feb 2016
Rookie Year: 2012
Location: Northwest Ohio
Posts: 32
Matt-T-FRC is an unknown quantity at this point
Re: Critical Talon Srx help needed

Can we see a snapshot of your Begin.vi and Telop.vi please
  #7   Spotlight this post!  
Unread 17-02-2016, 22:27
nickbrickmaster's Avatar
nickbrickmaster nickbrickmaster is offline
Not Allowed Near Power Tools
AKA: Nick Schatz
FRC #3184 (Blaze Robotics)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Eagan MN
Posts: 165
nickbrickmaster is an unknown quantity at this point
Re: Critical Talon Srx help needed

I'm not very familiar with LabVIEW, but I'll try to help as much as I can. What are the PID values you are using with the Talon? You can try increasing P until you see the motor move (safely). I've found that the Talon self-test is pretty helpful for checking problems.

You have the quad encoder hooked up to the talon via the breakout board, yes?
__________________
I have approximate knowledge of many things.

FRC 3184: 2014-, FTC 10648: 2015-
  #8   Spotlight this post!  
Unread 17-02-2016, 22:29
Team5860-Alex Team5860-Alex is offline
Registered User
FRC #5860
 
Join Date: Jan 2016
Location: Algonac, MI
Posts: 22
Team5860-Alex is an unknown quantity at this point
Re: Critical Talon Srx help needed

Quote:
Originally Posted by Matt-T-FRC View Post
Can we see a snapshot of your Begin.vi and Telop.vi please
Yes using breakout board

PID Values
https://www.dropbox.com/s/dvhe5a325z...10%29.png?dl=0

Begin
https://www.dropbox.com/s/wzamoeuelc...88%29.png?dl=0

Teleop
https://www.dropbox.com/s/1o918lpwrf...89%29.png?dl=0

Last edited by Team5860-Alex : 17-02-2016 at 22:34.
  #9   Spotlight this post!  
Unread 17-02-2016, 22:41
nickbrickmaster's Avatar
nickbrickmaster nickbrickmaster is offline
Not Allowed Near Power Tools
AKA: Nick Schatz
FRC #3184 (Blaze Robotics)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Eagan MN
Posts: 165
nickbrickmaster is an unknown quantity at this point
Re: Critical Talon Srx help needed

Those are some seriously huge PID values. P should be between 0 and 1 in most cases. I would start tuning with just a P value and no I/D, which you can add later if you need the stabilization.

The Talon SRX software reference manual has some good tips on PID tuning. You can use the self-test button to determine error, and calculate your initial P value based on that.
__________________
I have approximate knowledge of many things.

FRC 3184: 2014-, FTC 10648: 2015-
  #10   Spotlight this post!  
Unread 17-02-2016, 22:43
Matt-T-FRC Matt-T-FRC is offline
Electrical Engineering Student
AKA: Matt Tisovic
FRC #6181 (Northwest State Cryptic Cyborgs)
Team Role: Mentor
 
Join Date: Feb 2016
Rookie Year: 2012
Location: Northwest Ohio
Posts: 32
Matt-T-FRC is an unknown quantity at this point
Re: Critical Talon Srx help needed

Alright, that's a great start. Your Begin.vi you need everything to the right of the loop in your Telop.vi minus the driver station start communication. In your Telop.vi, you need everything inside the while loop except for the timer. Besides that, have you attempted to run this program at all on your robot?
Attached Thumbnails
Click image for larger version

Name:	Can Talon Encoder Image.png
Views:	25
Size:	73.6 KB
ID:	20101  
  #11   Spotlight this post!  
Unread 17-02-2016, 22:53
Team5860-Alex Team5860-Alex is offline
Registered User
FRC #5860
 
Join Date: Jan 2016
Location: Algonac, MI
Posts: 22
Team5860-Alex is an unknown quantity at this point
Re: Critical Talon Srx help needed

Quote:
Originally Posted by Matt-T-FRC View Post
Alright, that's a great start. Your Begin.vi you need everything to the right of the loop in your Telop.vi minus the driver station start communication. In your Telop.vi, you need everything inside the while loop except for the timer. Besides that, have you attempted to run this program at all on your robot?
Yes we ran it but nothing happened, is it an automatic process or should we assign this to a button?
  #12   Spotlight this post!  
Unread 17-02-2016, 22:59
Matt-T-FRC Matt-T-FRC is offline
Electrical Engineering Student
AKA: Matt Tisovic
FRC #6181 (Northwest State Cryptic Cyborgs)
Team Role: Mentor
 
Join Date: Feb 2016
Rookie Year: 2012
Location: Northwest Ohio
Posts: 32
Matt-T-FRC is an unknown quantity at this point
Re: Critical Talon Srx help needed

It should be assign to a button with the number of rotations that you would like the motor to turn.

Last edited by Matt-T-FRC : 17-02-2016 at 23:02.
  #13   Spotlight this post!  
Unread 17-02-2016, 23:10
Team5860-Alex Team5860-Alex is offline
Registered User
FRC #5860
 
Join Date: Jan 2016
Location: Algonac, MI
Posts: 22
Team5860-Alex is an unknown quantity at this point
Re: Critical Talon Srx help needed

Quote:
Originally Posted by Matt-T-FRC View Post
It should be assign to a button with the number of rotations that you would like the motor to turn.
Like so??
https://www.dropbox.com/s/81gj2e6wt4...12%29.png?dl=0
  #14   Spotlight this post!  
Unread 17-02-2016, 23:35
Matt-T-FRC Matt-T-FRC is offline
Electrical Engineering Student
AKA: Matt Tisovic
FRC #6181 (Northwest State Cryptic Cyborgs)
Team Role: Mentor
 
Join Date: Feb 2016
Rookie Year: 2012
Location: Northwest Ohio
Posts: 32
Matt-T-FRC is an unknown quantity at this point
Re: Critical Talon Srx help needed

Unless your resetting your PID in telop, this should be all you need to control that motor
Attached Thumbnails
Click image for larger version

Name:	Talon SRX Example.png
Views:	22
Size:	42.5 KB
ID:	20103  
  #15   Spotlight this post!  
Unread 17-02-2016, 23:46
Team5860-Alex Team5860-Alex is offline
Registered User
FRC #5860
 
Join Date: Jan 2016
Location: Algonac, MI
Posts: 22
Team5860-Alex is an unknown quantity at this point
Re: Critical Talon Srx help needed

Quote:
Originally Posted by Matt-T-FRC View Post
Unless your resetting your PID in telop, this should be all you need to control that motor
Nope still nothing

Last edited by Team5860-Alex : 18-02-2016 at 14:26.
Closed Thread


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 01:29.

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