|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Does anyone have any tips or know to program using CAN using the Andy Mark adapter? Any info on how to use CAN would be greatly appreciated. Diagrams/pics of code would especially helpful.
Thank you |
|
#2
|
|||||
|
|||||
|
Re: using CAN with the 2010 control system
You can find documentation and example code here.
(The 2CAN is made by Cross The Road Electronics. AndyMark is merely acting as a distributor.) |
|
#3
|
||||
|
||||
|
Re: using CAN with the 2010 control system
thank you...but unfortunately i forgot to include that i need it for labVIEW not c++
|
|
#4
|
||||
|
||||
|
Re: using CAN with the 2010 control system
Send an email to Omar Zrien (ozrien@gmail.com).
Quote:
If I had experience with UDP, I'd do it myself. |
|
#5
|
|||
|
|||
|
Re: using CAN with the 2010 control system
The LabVIEW API (as well as C++ and Java) for using CAN is here: http://firstforge.wpi.edu/sf/projects/canjaguar
The C++ API that CTRE has posted will not work with FRC 2010, based on the rules requirement of using the FIRST specific Jaguar firmware. |
|
#6
|
|||
|
|||
|
Re: using CAN with the 2010 control system
BTW, the plugin for the 2CAN has not been released yet. When it is, you will be able to find it at FIRST Forge.
Another way to connect to CAN is to use the new Black Jaguar as a serial to CAN bridge. You just make the cable according the the getting started guide from TI and plug it straight into the RS232 serial port on the cRIO. This way you don't need to buy a separate bridge device and can simply use one of your motor controllers. The driver plugin for using the Black Jaguar as a Serial to CAN bridge is posted on FIRST Forge. If you are going to use a lot of motors in open loop mode, you may need the additional bandwidth of Ethernet. |
|
#7
|
|||
|
|||
|
Re: using CAN with the 2010 control system
If anyone has difficulty navigating the FIRST Forge site looking for the LabVIEW code to use with Jaguar / CAN, here is a deep link to the zip file (at least where it is today):
http://firstforge.wpi.edu/sf/frs/do/...ar_for_labview |
|
#8
|
|||
|
|||
|
Re: using CAN with the 2010 control system
Thanks very much. Do you know in which directory the extracted files should be placed so that LabView can see them?
|
|
#9
|
|||
|
|||
|
Re: using CAN with the 2010 control system
Quote:
C:\Program Files\National Instruments\LabVIEW 8.6\user.lib\CANJaguar for LabVIEW They will then show up in your User Libraries palette in LabVIEW. |
|
#10
|
|||
|
|||
|
Re: using CAN with the 2010 control system
I have a similar question to Andy's. Our team is using the netbeans ide; how is the CANJaguar for Java folder added as a library to allow the use of edu.wpi.first.addons.CANJaguar?
|
|
#11
|
||||
|
||||
|
Re: using CAN with the 2010 control system
Our team has looked at the Java CANJaguar release, and at the moment only voltage setting is supported - none of the closed-loop methods are implemented yet.
I'm not sure if the primary developers are planning to release another update before the end of build, but we plan to try to implement some of the functionality we need ourselves. If we have success we will make our efforts available to the community. In the meantime, the bdc-comm utility does allow some experimentation with closed loop control, but obviously not under actual robot conditions. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tips for C++ programming the 2010 control system | woodk | C/C++ | 12 | 23-01-2010 21:38 |
| 2010 Control System Manual | screamingeagle | FRC Control System | 9 | 11-01-2010 14:01 |
| Unclaassified: Information about the 2010 control system | Nadav Zingerman | General Forum | 35 | 24-11-2009 19:17 |
| Do we have to ship the control system along with the robot on Tuesday? | tennisbeast29 | Rules/Strategy | 3 | 14-02-2009 13:39 |