Go to Post Programmer says autonomous will work 100% perfectly...Great way to clear the room of all mechanicals and all but the boldest electricals - EricH [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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
  #16   Spotlight this post!  
Unread 27-04-2011, 17:00
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 675
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Jaguar VS Victor

From the discussion in this and other threads, it seems the consenses is that the Jags are beneficial only because of the CAN bus functionality and the more linear power curve. What I am interested in knowing is how many teams actually found these benefits indispensable and under what circumstances? We have been using Victors all these years and don't see the need to go with the Jags. I know CAN bus offers a lot of new nice functionalities but how many teams are actually using them in software and if they absolutely cannot do without these functionalities? Every year we had a discussion on switching to Jags but when doing cost and benefit analysis, Jags always lose out for us.
__________________
  #17   Spotlight this post!  
Unread 27-04-2011, 17:50
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Jaguar VS Victor

Quote:
Originally Posted by mikets View Post
From the discussion in this and other threads, it seems the consenses is that the Jags are beneficial only because of the CAN bus functionality and the more linear power curve. What I am interested in knowing is how many teams actually found these benefits indispensable and under what circumstances? We have been using Victors all these years and don't see the need to go with the Jags. I know CAN bus offers a lot of new nice functionalities but how many teams are actually using them in software and if they absolutely cannot do without these functionalities? Every year we had a discussion on switching to Jags but when doing cost and benefit analysis, Jags always lose out for us.
We used CAN for Breakaway to control a kicker. To get it in position, we used current mode control to move backwards until it felt a force from a hardstop. To fire, we used an intentionally under-damped PID looped around position on an encoder. This made it easy to reliably control the rest positions and contact speed.

I do have to admit that we had a slight advantage - 3 of the mentors were involved in the design of some aspect of the CAN system.
  #18   Spotlight this post!  
Unread 27-04-2011, 18:08
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 675
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Jaguar VS Victor

Quote:
Originally Posted by EricVanWyk View Post
We used CAN for Breakaway to control a kicker. To get it in position, we used current mode control to move backwards until it felt a force from a hardstop. To fire, we used an intentionally under-damped PID looped around position on an encoder. This made it easy to reliably control the rest positions and contact speed.
So if I understand you correctly, using CAN to control the kicker basically saved you a limit switch. And what does an under-damped PID loop has to do with CAN? I don't quite see it probably because I don't know your kicker's design.
__________________
  #19   Spotlight this post!  
Unread 27-04-2011, 19:16
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Jaguar VS Victor

Quote:
Originally Posted by mikets View Post
So if I understand you correctly, using CAN to control the kicker basically saved you a limit switch. And what does an under-damped PID loop has to do with CAN? I don't quite see it probably because I don't know your kicker's design.
It was a rotary kicker direct driven by a motor: the boot would rush 120ish degrees to kick the ball, return to 90ish degrees to get back within the envelope, and then slowly return to 0ish degrees to reset.

The kick (0 -> 120 ->90) was handled in a single CAN command of "Travel to 90 with constants P,I,D". Since those constants were under-damped, it would reliably "over-travel" to 120. It was surprisingly easy to tune.

The return was just a "apply amperage -A". Yes, we could have done this with a limit-switch, but it was just as easy to do it this way. One benefit was that it made it really easy to hold it in the ready position against gravity. Not enough reason to move to CAN, but since it was already there...

I've used this as an example with a few students, and I think it is a very interesting teachable moment. Plot the desired response on a torque/speed chart, and then compare it to voltage, current and speed modes. For kicker return, current mode is pretty darn close to optimal.

Quote:
Originally Posted by mikets View Post
... I know CAN bus offers a lot of new nice functionalities but how many teams are actually using them in software and if they absolutely cannot do without these functionalities? Every year we had a discussion on switching to Jags but when doing cost and benefit analysis, Jags always lose out for us.
I really don't think that CAN should be used for every motor on every robot. It isn't a blanket replacement for PWM (though it can be used as one), and it isn't a silver bullet - it enables access to new control modes that can provide significant benefit when applied correctly in the appropriate situations.

I'm glad your team has the discussion, and I'm glad they are coming to a conclusion that works for them.

Last edited by EricVanWyk : 27-04-2011 at 19:22.
  #20   Spotlight this post!  
Unread 27-04-2011, 20:14
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 675
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Jaguar VS Victor

Quote:
Originally Posted by EricVanWyk View Post
I'm glad your team has the discussion, and I'm glad they are coming to a conclusion that works for them.
If jags weren't that fragile (i.e. get fried easily compared to victors and get cut-outs during competition), it could have easily won the cost benefit analysis. So our conclusion is that unless our robot design calls for a certain feature that jags can easily provide through CAN and cost too much to implement using Victors, we would avoid them. Hopefully, the next generation of jags will improve the reliability enough that will swing our opinion the other way.
__________________
  #21   Spotlight this post!  
Unread 12-01-2012, 14:55
bmlarson12 bmlarson12 is offline
Registered User
FRC #1977 (LHR)
Team Role: Electrical
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Colorado
Posts: 9
bmlarson12 is an unknown quantity at this point
Re: Jaguar VS Victor

The one problem we have had with both would be pwm cables falling out. We plan on trying the CAN system to clean up the wiring and add functionality. I didn't know that jaguars burned out so easily though. We have had one very old one go out, but that is all.
  #22   Spotlight this post!  
Unread 12-01-2012, 15:09
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Mentor, LRI, MN RPC
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,835
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Jaguar VS Victor

Personally, I find it really surprising to see everyone slamming Jags on reliability. Least year, we used 7 of them on the robot. The year before, we used 4. Year before that, we used 2. We've only had 1 issue with them between 7 different official competitions (and who knows how many off season events) competition, and that was due to the limit switch input on one getting screwed up (it worked if we jiggled our inputs for the limit switch, but replacing the Jag fixed it entirely). That Jag still works with jumpers. We've never burned out a Jag or a Victor in 6 years of competing.

The problem is, you seldom hear about teams using Jags successfully. It's the teams that have problems with them that come and post, so it looks like there's a much larger problem than there actually is.
  #23   Spotlight this post!  
Unread 12-01-2012, 15:18
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
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: Jaguar VS Victor

Quote:
Originally Posted by PAR_WIG1350 View Post
I'm sure there is some special case in which a jaguar in pwm mode would have some advantages over a victor
One special case I can think of: When operating at stall, a Jaguar tends to heat up the motor a bit less than a Vic, for the same torque output.


  #24   Spotlight this post!  
Unread 12-01-2012, 15:50
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 675
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Jaguar VS Victor

This year, we are trying Jaguars and CAN bus because we are quickly running out of digital I/O channels with all the encoders (encoders can directly connect to the Jags). It sure does clean up our wiring. See my pictures on this thread (http://chiefdelphi.com/forums/showth...t=99554&page=2).
However, while making the Jags to work with the code, one of the brand new Jag is already malfunctioning. I don't know what happened. Here is the sequence of events:
- We have 4 Black Jaguars driving a mecanum wheel set.
- Flashed the latest firmware to all the Jags and the 2CAN.
- Successfully assigning IDs and running each individual motors by using the bdc-comm tool.
- We have four encoders (one for each motor), but for some reasons all the encoders are not working (could be because of the new way we connect them). We are still investigating it.
- While testing different modes of the Jags, one of them died. The status LED goes dark even though I have power to it. After replacing the dead jag and some tweaking around with the code, the robot now runs teleop fine.

Since this is a brand new Jag, is it under warranty? How would I send it back for repair?
__________________
  #25   Spotlight this post!  
Unread 12-01-2012, 15:53
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,599
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: Jaguar VS Victor

Quote:
Originally Posted by mikets View Post
Since this is a brand new Jag, is it under warranty? How would I send it back for repair?
There is a link to RMA information at http://www.ti.com/jaguar
  #26   Spotlight this post!  
Unread 12-01-2012, 16:01
~Cory~'s Avatar
~Cory~ ~Cory~ is offline
Student
AKA: Cory Rypkema
FRC #0706
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Worcester MA
Posts: 216
~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold
Re: Jaguar VS Victor

I just want to throw this into the mix:

Pro Jag (black)

The 2Can controller is awesome. Nothing beats remotely a remote user panel to debug/modify. And it saves wiring space by having the the 2can-crio connection over Ethernet.
__________________
corin.rypkema.org
WPI Class of '17
'12 Dean's List Finalist, Mentor of 706 - Cyberhawks
  #27   Spotlight this post!  
Unread 12-01-2012, 21:06
BAM BAM is offline
Registered User
FRC #2425
 
Join Date: Jan 2012
Location: Atlanta
Posts: 13
BAM is an unknown quantity at this point
Re: Jaguar VS Victor

If your using PWM, Victors are your best bet. I've used both for years, and based on what you've said, Victors seem to be right for you. Jaguars only advantage is that they can run Can. Can will give you better feedback (Voltage/current/other), but are bigger, and less durable. Based on you saying "School TOY", I'm assuming this robot is in for a long life full of those autonomous mishaps that send your robot full speed into a wall. Victors will be able to take that abuse, while jags will not (Trust me, after testing, we used victors in our 120lbs battlebot). Hope this helps
  #28   Spotlight this post!  
Unread 16-01-2012, 15:31
Bryscus's Avatar
Bryscus Bryscus is offline
EE, CpE
AKA: Bryce B.
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 1999
Location: Jupiter, FL
Posts: 173
Bryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud of
Re: Jaguar VS Victor

Quote:
Originally Posted by ~Cory~ View Post
I just want to throw this into the mix:

Pro Jag (black)

The 2Can controller is awesome. Nothing beats remotely a remote user panel to debug/modify. And it saves wiring space by having the the 2can-crio connection over Ethernet.
I'd be all over the 2CAN interface, but I just can't justify the $200 item (PER ROBOT if you keep them around) when there is a $2 option that just happens to run 4 times slower. I haven't run into a situation where we've been limited by the bandwidth (yet).

Quote:
Originally Posted by BAM View Post
If your using PWM, Victors are your best bet. I've used both for years, and based on what you've said, Victors seem to be right for you. Jaguars only advantage is that they can run Can. Can will give you better feedback (Voltage/current/other), but are bigger, and less durable. Based on you saying "School TOY", I'm assuming this robot is in for a long life full of those autonomous mishaps that send your robot full speed into a wall. Victors will be able to take that abuse, while jags will not (Trust me, after testing, we used victors in our 120lbs battlebot). Hope this helps
While CAN is a nice interface that simplifies wiring, that's only one small benefit for the Jags. The BIGGEST improvement is minor loop control capabilities. Imagine driving to speed during the competition and then switching over to position mode to give you the ability to accurately traverse a specific distance.

While the Jags are fairly rugged, we had some issues last year with a couple of them. I'm of the opinion however, that the mechanical guys killed them with aluminum filings... If you're careful though, they work just fine.

- Bryce
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.
  #29   Spotlight this post!  
Unread 16-01-2012, 15:48
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Jaguar VS Victor

My opinions on the topic:

-The serial bridge is ~1/8th the speed of the 2can, yes (115,200baud serial vs 1M?) - That's fairly significant if you update the Jaguars fast enough

-We have yet to use a CAN jaguar, or have any features we cannot do with purely a Victor and some software on our end. We like it this way for some things, as we can modify the control loop to fit our robot (a PID loop isn't great for everything), or add multiple control loops and add the output (e.g. control to distance + control to heading over the two sides).

-We will never use a Jaguar in drivetrains because of their high-current shutdown. We had a lot of issues on our Lunacy bot post-season, because after 5 minutes of driving (with super low cof wheels, remember) the shooter could randomly (predictably after a few minutes) shut down due to the extended current draw of forward-reverse slams.

-I've heard the black jags are far more reliable than the grey ones. We are willing to use a black jag if it gives us an advantage, but we haven't found an advantage yet. They are functionally the same over PWM, but if you only use PWM control, the Jaguars are physically bigger and can't handle the extended high-current draw that the Victors can.

-In my time on 33, I've only seen 1 Victor die, ever. We have some of the really old Victor 883's which we still use for practice and mock up robots, and they still work after many years of use. The Jaguars don't yet have that kind of track record, especially after the really bad grey jags.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #30   Spotlight this post!  
Unread 21-01-2012, 21:05
Bryscus's Avatar
Bryscus Bryscus is offline
EE, CpE
AKA: Bryce B.
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 1999
Location: Jupiter, FL
Posts: 173
Bryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud of
Re: Jaguar VS Victor

Quote:
Originally Posted by apalrd View Post
My opinions on the topic:

-The serial bridge is ~1/8th the speed of the 2can, yes (115,200baud serial vs 1M?) - That's fairly significant if you update the Jaguars fast enough
Yep, you'd be right. However, we've run at least 6 Jaguars in CAN mode on a robot for the last couple of years now, and the serial to CAN interface has not been considered slow. How often do you plan on updating a Jaguar anyway? To give you an idea, the Jaguar messages that are sent are only 32-bits long. The therefore theoretical maximum bandwidth of messages is 3600 commands PER SECOND. In PWM mode, the Jags can be updated every 5ms or so and the Victors every 10ms. So that's only 200 and 100 commands per second, respectively. Assuming 10 Jaguars and a 60% efficiency, you still get about 200 updates per second per Jaguar. And with fewer, the update rate is higher. My point was that I can't justify the $200 cost for update speeds that I already get.

Quote:

-We have yet to use a CAN jaguar, or have any features we cannot do with purely a Victor and some software on our end. We like it this way for some things, as we can modify the control loop to fit our robot (a PID loop isn't great for everything), or add multiple control loops and add the output (e.g. control to distance + control to heading over the two sides).
Sometimes it's just nice to tell a Jaguar to go to a position using a Set() command rather than having to write or use a PID in your code for it.

Quote:

-We will never use a Jaguar in drivetrains because of their high-current shutdown. We had a lot of issues on our Lunacy bot post-season, because after 5 minutes of driving (with super low cof wheels, remember) the shooter could randomly (predictably after a few minutes) shut down due to the extended current draw of forward-reverse slams.
This year, rate limiting (built-in) will solve most of those issues. However, we have run Jaguars on the drive train for the last couple years and we could not make them reset when using a joystick to thrash the motors back and forth. We only run into those issues when the command for full forward is immediately followed by full reverse. And even THEN we only had that issue because we were doing that with five motors simultaneously. (It was a swerve drive train without completely rotating modules). Even THEN the issue was a voltage dip because of the HUGE current spike of 5 CIM motors reversing direction immediately. Rate limiting solved that issue nicely. It's typically considered unnecessary to slam them back and forth since even a quick rate limit will be imperceptible to humans.

Quote:

-I've heard the black jags are far more reliable than the grey ones. We are willing to use a black jag if it gives us an advantage, but we haven't found an advantage yet. They are functionally the same over PWM, but if you only use PWM control, the Jaguars are physically bigger and can't handle the extended high-current draw that the Victors can.
I think that probably has to do with people removing the screws on the Grey Jags even though they aren't meant to be removed - and thus leaving metal shards in the case.

Quote:

-In my time on 33, I've only seen 1 Victor die, ever. We have some of the really old Victor 883's which we still use for practice and mock up robots, and they still work after many years of use. The Jaguars don't yet have that kind of track record, especially after the really bad grey jags.
Now that, I'd agree with. Jags just need some babying and there are a few fundamental rules that have to be followed to have success. They have their problems, but they're pretty great at the same time.

- Bryce
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.
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 18:50.

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