![]() |
2CAN Plugin Released
We are happy to announce that a plugin for the 2CAN is now available. The plugin will allow 2CAN users to send and retrieve data to/from Jaguars over CAN using c/c++, Java or Labview. Links to the latest Firmware, Firmware utility and the Plugin are posted at: http://www.crosstheroadelectronics.com/2CAN.htm. The links will be available on the AndyMark website as well. The plugin will also be available on First Forge at: http://firstforge.wpi.edu). The plugin is necessary for the 2CAN to be used in the 2010 FRC.
|
Re: 2CAN Plugin Released
We installed the 2CAN plug-in as well as installing the newest firmware. We have it hooked up to Ethernet 2 and have done all the necessary steps from the user manual to get it to work. We put the plug-in in the correct folder and have changed the startup DLLs line in the ini file, and we have been getting this error message from the net console during boot:
Code:
* Loading StartupDlls: FRC_2CANPlugInThanks -Niles (Team 294) |
Re: 2CAN Plugin Released
Ok, Now we have managed to get the plug-in to load, however we are getting these messages that continue as long as the robot is on, and we still are unable to drive the motors connected to the CAN:
Code:
* Loading StartupDlls: FRC_UserProgramAny Reason this would happen? -Niles (Team 294) |
Re: 2CAN Plugin Released
How did you get the plugin to load.
Thanks, Julian |
Re: 2CAN Plugin Released
Follow the directions in the 2CAN user manual to edit ni_rt.ini on the robot and add a reference to FRC_2CANPlugIn to the StartupDlls line.
The first time around we didn't follow the 2CAN instructions exactly, and put the reference to FRC_2CANPlugIn before FRC_UserProgram like the black jaguar plugin instructions tell you to. Apparently the FRC_2CANPlugIn uses some functions in WPILib (Synchronization class) that aren't loaded until the FRC_UserProgram is loaded, which is why we got the errors the first time around. Moving the 2CAN plugin after the UserProgram fixed this error and allowed the plugin to load. That said, we still don't have CAN bus control yet via the plugin, per Niles' latest post. We'll see if we get any further Friday evening. |
Re: 2CAN Plugin Released
I think we are seeing similar behavior as noted in this thread: http://www.chiefdelphi.com/forums/sh...threadid=80821
I will work on it tonite and report back. At least the Jag talks to the 2CAN! |
Re: 2CAN Plugin Released
We are looking into these issues and will get back to you soon. If you find the problem please post the solution.
|
Re: 2CAN Plugin Released
Quote:
Is the LED on the 2CAN blinking? If yes, is it blinking orange then off or orange then red? |
Re: 2CAN Plugin Released
Yes, it's blinking. Orange/off/orange/off from what I recall; I'll doublecheck in a couple hours when we're back in the lab.
We can connect to the 2CAN using the web interface and it can see the Jaguar on the CAN bus. |
Re: 2CAN Plugin Released
The same with us (blinking red while being able to see the 2CAN network on the browser). Noticing on trying to download code that the FRC_2CANPlugIn.out fails to load.
|
Re: 2CAN Plugin Released
I suspect the problem is that FRC_UserProgram isn't imaged in when the cRIO is imaged for labview. Since the 2CAN plugin uses some of the library that's probably why its crashing. Darn, I thought i had removed all references to classes in the library (Nice catch peterjohnson). Expect an update soon.
Omar Zrien CTRE Software/Firmware Engineer Team 217 The Thunder Chickens 2006 World Champions 2008 World Champions |
Re: 2CAN Plugin Released
Ours is working now (basically as soon as I turned on the robot). The 2CAN is still blinking orange/off/orange/off but the motor now drives via CAN! We fixed a couple of things very late in the day on Wednesday in both wiring (e.g. connecting the motor) and programming, so it's likely we didn't hit everything in testing we should have.
The key thing is indeed to order the StartupDlls correctly (for C++), at least until Omar gets the update out :). |
Re: 2CAN Plugin Released
Hi - just curious, will the plugin source also be available on firstforge as with the BlackJag plugin? Hoping the answer is "yes" - great stuff for student team members to learn from, and also provide a way for the community to contribute.
- Ron Team #2607 controls mentor |
Re: 2CAN Plugin Released
Quote:
|
Re: 2CAN Plugin Released
We are able to get the 2CAN to communicate via the cRIO with the jaguars. We are able to get the voltage bus and the temp. The 2CAn blinks green as long as we are in teleop. We cannot get the robot to move via the 2can. This occurs even if we set the CanJaguar to 1.0
Thanks for any help, Julian Binder |
| All times are GMT -5. The time now is 08:21 PM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi