Go to Post That seems like a pretty cool idea! Who'da thunk o' dat?! :rolleyes: - dlavery [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 04-16-2010, 01:50 PM
RoboGuy RoboGuy is offline
Registered User
FRC #3452 (GreengineerZ)
Team Role: Programmer
 
Join Date: Apr 2010
Rookie Year: 2010
Location: Michigan
Posts: 14
RoboGuy is on a distinguished road
CANJaguar vi's

Do the CANJaguar vi's from FirstForge/WPI send signals to the jaguars from the cRIO's ethernet port 2 or it's serial/RS232 port? I need to know so my team can buy the correct adapter. Thanks in advance.
  #2   Spotlight this post!  
Unread 04-16-2010, 06:58 PM
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: CANJaguar vi's

The VIs can do either. It depends on whether you install the 2CAN or Serial plugin on the cRIO.
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
  #3   Spotlight this post!  
Unread 04-16-2010, 07:53 PM
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,345
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: CANJaguar vi's

The following is my opinion based on observation and the current devices in use in FRC as of today. This opinion could change in a moment if circumstances change.

When considering whether to go with 2-CAN or serial, consider this:
1)Both Ethernet ports are needed on the cRio IF you intend to use the vision system.
2) There are multiple flavors of "serial" available on the current FRC control system, RS232, I2C, TTL (with a little support hardware).

Serial will be much less expensive to implement AND no specific devices require it's use currently. So, IMHO, serial is the way to go.


Just my $.02.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #4   Spotlight this post!  
Unread 04-16-2010, 08:04 PM
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: CANJaguar vi's

Quote:
Originally Posted by billbo911 View Post
Serial will be much less expensive to implement AND no specific devices require it's use currently. So, IMHO, serial is the way to go.
Also, serial will get you CAN with no extra weight since you just need to replace a gray jag with a black one

Quote:
Originally Posted by billbo911 View Post
1)Both Ethernet ports are needed on the cRio IF you intend to use the vision system.
2) There are multiple flavors of "serial" available on the current FRC control system, RS232, I2C, TTL (with a little support hardware).
1) 2CAN has a 2nd ethernet port and acts as a switch as well as a CAN adapter, so you can use the camera and 2CAN at the same time
2) The Serial CAN plugin is built only to work with the RS232 port on the cRIO
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"

Last edited by Radical Pi : 04-16-2010 at 08:06 PM.
  #5   Spotlight this post!  
Unread 04-16-2010, 09:05 PM
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,345
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: CANJaguar vi's

Quote:
Originally Posted by Radical Pi View Post
Also, serial will get you CAN with no extra weight since you just need to replace a gray jag with a black one

1) 2CAN has a 2nd ethernet port and acts as a switch as well as a CAN adapter, so you can use the camera and 2CAN at the same time
Well, that is info I was not aware of. That is the kind of information that would influence my opinion. As you said though, replacing one Jag for another is a zero weight gain.

Thanks for the info Pi. Good stuff.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #6   Spotlight this post!  
Unread 04-16-2010, 09:14 PM
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: CANJaguar vi's

Before you ask how to connect CANbus, think if you need CAN. What does it give you that you can't already get? You can already do feedback on position or speed with the cRio, and get open voltage control, using PWM. CAN provides you with constant current control and feedback on current usage, which may or may not be useful. Unless you really really want constant current control, you don't need CAN. And, if you are using it for position feedback, all it provides you is code implemented to do PID. You can already use LabVIEW PID to do it easily. Either way you still have to tune the gains, which is probably the hardest part. If you don't understand what advantage CAN gives you and don't know if you need it, you probably don't. We decided this year that we would rather use the IFI Victors because they are far more reliable than the Jaguars (we had 12 Jaguars on last years robot and more failures that year then the past few years combined), and we don't need any current control.
__________________
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
  #7   Spotlight this post!  
Unread 04-16-2010, 10:04 PM
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,997
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: CANJaguar vi's

Quote:
Originally Posted by apalrd View Post
Before you ask how to connect CANbus, think if you need CAN. What does it give you that you can't already get?
Closed-loop position and speed control at 1000 Hz. No worries about jitter/overruns messing up 20Hz PID tuning on cRIO.

Motor current and motor voltage (can be used to monitor motor internal temperature via resistance).

Current feedback can be used to implement torque limiting for traction control.


~
  #8   Spotlight this post!  
Unread 04-17-2010, 11:52 PM
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: CANJaguar vi's

Quote:
Originally Posted by Ether View Post
Closed-loop position and speed control at 1000 Hz. No worries about jitter/overruns messing up 20Hz PID tuning on cRIO.
Do you honestly need to run any code faster than 50hz? The radio packets are timed to aprox. 20hz, so anything faster than that is working off old data. I have no loops running faster than every 20ms (50hz), most run at 40ms, and have no problems with PID timing at that rate.
__________________
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
  #9   Spotlight this post!  
Unread 04-18-2010, 12:13 AM
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,997
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: CANJaguar vi's

Quote:
Originally Posted by apalrd View Post
Do you honestly need to run any code faster than 50hz?
Need to? No.

Quote:
Originally Posted by apalrd View Post
The radio packets are timed to aprox. 20hz,
I believe they're 50Hz.


Quote:
Originally Posted by apalrd View Post
so anything faster than that is working off old data.
The point you are trying to make is a valid one, but your argument is not complete as it stands. When evaluating the frame rate for a closed loop digital control, it's not just the update rate of the set point that must be considered. The dynamics of the plant must be taken into account also. In this case, the response of the wheel velocity is likely much less than 50Hz, due to its mass (and the mass of the robot as long as the wheel is not slipping).


Quote:
Originally Posted by apalrd View Post
I have no loops running faster than every 20ms (50hz), most run at 40ms, and have no problems with PID timing at that rate.
You probably know what you are doing and have well-written code. Closing the loop in the Jag is more forgiving because the loop closure is immune to programming errors in other areas of the code that could cause realtime overruns - errors like I see discussed quite often here on Chief Delphi.

~
  #10   Spotlight this post!  
Unread 04-18-2010, 12:32 AM
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: CANJaguar vi's

This one doesn't seem to get mentioned very often:
Jaguars also tell you their temperature, which you can monitor to predict or troubleshoot failures.

I haven't been able to find a LabVIEW driver for 2can. Could somebody point me towards it?
__________________
-- Marshal Horn
  #11   Spotlight this post!  
Unread 04-18-2010, 12:49 AM
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,997
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: CANJaguar vi's

Quote:
Originally Posted by kamocat View Post
I haven't been able to find a LabVIEW driver for 2can. Could somebody point me towards it?
It's not part of the 2010 FRC LabVIEW installation.
It's 3rd-party:

http://firstforge.wpi.edu/sf/projects/canjaguar



Quote:
Originally Posted by kamocat View Post
This one doesn't seem to get mentioned very often:
Jaguars also tell you their temperature, which you can monitor to predict or troubleshoot failures.
Yes, add that to the list.

~
  #12   Spotlight this post!  
Unread 04-18-2010, 01:00 AM
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: CANJaguar vi's

Isn't that for the black jaguar?
I've seen the C++ 2can driver, back around the start of the build season, and I remember seeing it received the data from the CAN functions and forwarded them to the 2CAN via UDP datagrams.

Assuming that project is for BOTH 2CAN and the serial CAN, how do I configure the firmware/framework for one versus the other? Is it sent over both by default?
__________________
-- Marshal Horn
  #13   Spotlight this post!  
Unread 04-18-2010, 01:08 AM
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: CANJaguar vi's

Both VIs are used identically between 2CAN and Serial, however there is a cRIO software plugin that can be swapped for 2CAN or Serial mode (not both at the same time though). The seial version is on firstforge under the canjaguar project as BlackJagBridgePlugin. The 2CAN version can be downloaded here (the source is in the firstforge repository, however a build has not been posted on firstforge).
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
  #14   Spotlight this post!  
Unread 04-18-2010, 02:23 AM
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: CANJaguar vi's

Quote:
Originally Posted by Radical Pi View Post
Both VIs are used identically between 2CAN and Serial, however there is a cRIO software plugin that can be swapped for 2CAN or Serial mode (not both at the same time though). The seial version is on firstforge under the canjaguar project as BlackJagBridgePlugin. The 2CAN version can be downloaded here (the source is in the firstforge repository, however a build has not been posted on firstforge).
Thank you.
That wasn't very clear in the 2CAN documentation. The last time I talked to them, it was C++ only.
__________________
-- Marshal Horn
  #15   Spotlight this post!  
Unread 04-16-2010, 10:07 PM
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,997
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: CANJaguar vi's

Quote:
Originally Posted by Radical Pi View Post
Also, serial will get you CAN with no extra weight since you just need to replace a gray jag with a black one
What's the going price for a black jag ? Cheaper than a 2CAN ?


~
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Potential Issue with the C++ CANJaguar Implementation mattbutts C/C++ 2 02-19-2010 01:26 PM
CANJaguar for C++: Missing mode init messages? Abrakadabra CAN 2 02-14-2010 01:18 AM
CANJaguar + BlackJagBridge plugin errors Shinigami2057 CAN 1 02-06-2010 11:20 AM
Timer vi's and Watchdog Rafael Vasquez Programming 1 01-28-2010 06:38 PM
Basic VI's ???? chsrobotics3283 NI LabVIEW 8 01-22-2010 12:00 AM


All times are GMT -5. The time now is 03:57 AM.

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