|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
Re: CANJaguar vi's
The VIs can do either. It depends on whether you install the 2CAN or Serial plugin on the cRIO.
|
|
#3
|
||||
|
||||
|
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. |
|
#4
|
|||
|
|||
|
Re: CANJaguar vi's
Quote:
Quote:
2) The Serial CAN plugin is built only to work with the RS232 port on the cRIO Last edited by Radical Pi : 16-04-2010 at 20:06. |
|
#5
|
||||
|
||||
|
Re: CANJaguar vi's
Quote:
Thanks for the info Pi. Good stuff. |
|
#6
|
|||||
|
|||||
|
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.
|
|
#7
|
||||
|
||||
|
Re: CANJaguar vi's
Quote:
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
|
||||
|
||||
|
Re: CANJaguar vi's
Quote:
~ |
|
#9
|
|||
|
|||
|
Re: CANJaguar vi's
Much cheaper than a 2CAN. At FRC discount, a black jag is $85 (plus like $5 for the other parts needed). 2CAN will run you $116 at discount.
Plus (when we ordered our black jag), according to digikey gray jags are no longer available. Not sure if that means discontinued or just sold out when we tried to buy one |
|
#10
|
|||||
|
|||||
|
Re: CANJaguar vi's
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.
|
|
#11
|
||||
|
||||
|
Re: CANJaguar vi's
Need to? No.
I believe they're 50Hz. 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:
~ |
|
#12
|
||||
|
||||
|
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? |
|
#13
|
||||
|
||||
|
Re: CANJaguar vi's
Quote:
It's 3rd-party: http://firstforge.wpi.edu/sf/projects/canjaguar Quote:
~ |
|
#14
|
||||
|
||||
|
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? |
|
#15
|
|||
|
|||
|
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).
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Potential Issue with the C++ CANJaguar Implementation | mattbutts | C/C++ | 2 | 19-02-2010 13:26 |
| CANJaguar for C++: Missing mode init messages? | Abrakadabra | CAN | 2 | 14-02-2010 01:18 |
| CANJaguar + BlackJagBridge plugin errors | Shinigami2057 | CAN | 1 | 06-02-2010 11:20 |
| Timer vi's and Watchdog | Rafael Vasquez | Programming | 1 | 28-01-2010 18:38 |
| Basic VI's ???? | chsrobotics3283 | NI LabVIEW | 8 | 22-01-2010 00:00 |