Go to Post We are different, but in our differences we help the world continue to grow, change, become inspired. Different is NOT bad. Be true to your self, be weird, be dorky, be crazy, be a geek. :) - chellyzee93 [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-02-2016, 00:08
duane's Avatar
duane duane is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Vacaville
Posts: 98
duane is an unknown quantity at this point
Send a message via AIM to duane
CAN Talon and Bang Bang Controller

Has anyone had success with a bang bang controller with the CAN Talon speed controllers?

Our results were less than spectacular. The lag time for reading and setting the talons was noticeably slow so that you could tell even by listening that the motor was rotating over a large range of speed. I don't recall the graph values but the results were were over a large range.

We were also using an unloaded motor. The motor was on a bench with nothing attached to the shaft.

Any thoughts would be great to consider.

Thanks
__________________
Duane Murphy
Mentor - Software
Vanden Vikings FIRST Team 701
http://www.vandenrobotics.com
Reply With Quote
  #2   Spotlight this post!  
Unread 13-02-2016, 00:48
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: CAN Talon and Bang Bang Controller

Are you closing the loop onboard the Talon or on the roboRIO?
Reply With Quote
  #3   Spotlight this post!  
Unread 13-02-2016, 00:53
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,088
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: CAN Talon and Bang Bang Controller

Quote:
Originally Posted by duane View Post
The lag time for reading and setting the talons was noticeably slow... We were also using an unloaded motor

Any thoughts would be great to consider.

http://www.chiefdelphi.com/forums/sh...49&postcount=8

Look at bullet points 3, 4, and 5 (phase lag, moment of inertia, controller period). That's why your results were less than spectacular.

You could improve your results by adding a shooter wheel (increase moment of inertia) and increasing the Talon broadcast frequency (decrease the phase lag).

But if you have CAN Talon, why aren't you using its built-in speed controller?




Last edited by Ether : 13-02-2016 at 00:57.
Reply With Quote
  #4   Spotlight this post!  
Unread 13-02-2016, 13:08
duane's Avatar
duane duane is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Vacaville
Posts: 98
duane is an unknown quantity at this point
Send a message via AIM to duane
Re: CAN Talon and Bang Bang Controller

> But if you have CAN Talon, why aren't you using its built-in speed controller?

Umm, huh? Esplain? I've been over the API, I didn't notice a built-in speed controller?

I'll look again, but a hint would be great.
__________________
Duane Murphy
Mentor - Software
Vanden Vikings FIRST Team 701
http://www.vandenrobotics.com
Reply With Quote
  #5   Spotlight this post!  
Unread 13-02-2016, 13:09
duane's Avatar
duane duane is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Vacaville
Posts: 98
duane is an unknown quantity at this point
Send a message via AIM to duane
Re: CAN Talon and Bang Bang Controller

Quote:
Originally Posted by Jared Russell View Post
Are you closing the loop onboard the Talon or on the roboRIO?
How would I close the loop in the Talon?

@Ether indicates a built-in speed controller. I've not noticed that, I'm looking ...
__________________
Duane Murphy
Mentor - Software
Vanden Vikings FIRST Team 701
http://www.vandenrobotics.com
Reply With Quote
  #6   Spotlight this post!  
Unread 13-02-2016, 13:15
duane's Avatar
duane duane is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Vacaville
Posts: 98
duane is an unknown quantity at this point
Send a message via AIM to duane
Re: CAN Talon and Bang Bang Controller

Are you referring to

Code:
SetControlMode(kSpeed);
Hmm, that could be useful!
__________________
Duane Murphy
Mentor - Software
Vanden Vikings FIRST Team 701
http://www.vandenrobotics.com
Reply With Quote
  #7   Spotlight this post!  
Unread 13-02-2016, 14:13
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,088
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: CAN Talon and Bang Bang Controller

...
Attached Thumbnails
Click image for larger version

Name:	SRX_speed_control.png
Views:	67
Size:	23.7 KB
ID:	20048  
Reply With Quote
  #8   Spotlight this post!  
Unread 13-02-2016, 22:16
duane's Avatar
duane duane is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Vacaville
Posts: 98
duane is an unknown quantity at this point
Send a message via AIM to duane
Re: CAN Talon and Bang Bang Controller

Thank you! We are having some success with using the Talon in these modes!
__________________
Duane Murphy
Mentor - Software
Vanden Vikings FIRST Team 701
http://www.vandenrobotics.com
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 06:44.

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