![]() |
using CAN with the 2010 control system
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 |
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.) |
Re: using CAN with the 2010 control system
thank you...but unfortunately i forgot to include that i need it for labVIEW not c++
|
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. |
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. |
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. |
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 |
Re: using CAN with the 2010 control system
Quote:
|
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. |
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?
|
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. |
Re: using CAN with the 2010 control system
Quote:
-Joe |
Re: using CAN with the 2010 control system
Thanks for the quick reply Joe. The team decided to program in Java this year since it is the language taught at the High School, and we only started seriously investigating CANJaguar support this past weekend.
I also realize this is the wrong sub-forum for Java discussion, so apologies for hijacking a Labview thread. |
| All times are GMT -5. The time now is 11:50. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi