Go to Post I wouldn't want to force another me on everyone! - Andy Grady [more]
Home
Go Back   Chief Delphi > Technical > Control System
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 26-11-2014, 14:48
magoldsm magoldsm is offline
Lead Mentor
AKA: Michael Goldsmith
FRC #2635 (Lake Monsters)
Team Role: Mentor
 
Join Date: Nov 2014
Rookie Year: 2012
Location: United States
Posts: 3
magoldsm is an unknown quantity at this point
Motor Controller Temporal Resolution

In Aerial Assist, the Lake Monsters used an electric catapult. Instead of a physical stop, we had software monitor the position of the catapult arm and apply full reverse power when the desired release point was reached. We struggled with repeatability. Sometime after the end of the season it dawned on us that we could not achieve the 1-millisecond accuracy of braking that we needed because the PWM input to the Talons has an input rate of (as I recall) about 4 milliseconds. This means it could take anywhere up to 4 milliseconds for the Talon to "notice" that the input signal has changed. This resulted in an uncertainty of release angle of about 2 degrees which was more than enough to spoil our longer shots.

For the future, we were wondering about the resolution when controlling a Jaguar or the new Talon SRX using CAN. Does anyone have any idea how quickly these devices will respond to a CAN motor command?


Thanks!

Michael Goldsmith
2635 Lead Mentor
Reply With Quote
  #2   Spotlight this post!  
Unread 29-11-2014, 22:14
adciv adciv is offline
One Eyed Man
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Southern Maryland
Posts: 478
adciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to all
Re: Motor Controller Temporal Resolution

In labview, it looks like it will be updated at 20ms (10 for the Talon SRX) if I'm reading the code correctly. You may be able to set this yourself in code. WRT the repeatability you were seeing, can you explain the setup (PWM/CAN) and programming language you were using?
__________________
Quote:
Originally Posted by texarkana View Post
I would not want the task of devising a system that 50,000 very smart people try to outwit.
Reply With Quote
  #3   Spotlight this post!  
Unread 30-11-2014, 07:08
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,750
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Motor Controller Temporal Resolution

I believe all the speed controllers update at 5ms except for the legacy Victor, which was at 10ms. If you look at the diagram of the various motor control Open nodes, you'll see them us 1x, 2x, or 4x as their period multiplier. This is in 5ms increments.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 30-11-2014, 10:39
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,562
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Motor Controller Temporal Resolution

For anyone confused at home, adciv gave the update rate for CAN on the roboRIO, (ie how often the roboRIO will send a new command) and Greg gave the update rate for PWM on the roboRIO. On the cRIO, by default, only the jaguar used 5ms for PWM.

Michael, what kind of sensor did you use for the catapult position? Correct me if I'm wrong, but if you could get the catapult to stop at the right position, it wouldn't matter what the temporal resolution is, right?
Reply With Quote
  #5   Spotlight this post!  
Unread 30-11-2014, 10:44
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,063
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: Motor Controller Temporal Resolution

Quote:
Originally Posted by Joe Ross View Post
For anyone confused at home, adciv gave the update rate for CAN on the roboRIO, (ie how often the roboRIO will send a new command) and Greg gave the update rate for PWM on the roboRIO. On the cRIO, by default, only the jaguar used 5ms for PWM.
Thanks Joe. I was in the middle of fact-checking when you posted this.


Reply With Quote
  #6   Spotlight this post!  
Unread 30-11-2014, 11:24
wilsonmw04's Avatar
wilsonmw04 wilsonmw04 is offline
Coach
FRC #1086 (Blue Cheese)
Team Role: Teacher
 
Join Date: Dec 2006
Rookie Year: 2007
Location: Midlothian, VA
Posts: 1,884
wilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond repute
Re: Motor Controller Temporal Resolution

Quote:
Originally Posted by magoldsm View Post
In Aerial Assist, the Lake Monsters used an electric catapult. Instead of a physical stop, we had software monitor the position of the catapult arm and apply full reverse power when the desired release point was reached. We struggled with repeatability. Sometime after the end of the season it dawned on us that we could not achieve the 1-millisecond accuracy of braking that we needed because the PWM input to the Talons has an input rate of (as I recall) about 4 milliseconds. This means it could take anywhere up to 4 milliseconds for the Talon to "notice" that the input signal has changed. This resulted in an uncertainty of release angle of about 2 degrees which was more than enough to spoil our longer shots.

For the future, we were wondering about the resolution when controlling a Jaguar or the new Talon SRX using CAN. Does anyone have any idea how quickly these devices will respond to a CAN motor command?


Thanks!

Michael Goldsmith
2635 Lead Mentor
I'm curious of the speed of your shooter or the length of the arm that would give you a 2 degree variation over a few ms.
__________________
Currently: Coach FRC 1086/FTC 93
2006-2011 Coach FRC 2106/FTC 35
If you come to a FRC event to see a robot competition, you are missing the point.
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 20:11.

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