|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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.
|
|
#2
|
|||
|
|||
|
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_2CANPlugIn task 0x1d84c48 (t2) deleted: errno=0 (0) status=0 (0) Warning: module 0x1de0498 (FRC_2CANPlugIn.out) holds reference to undefined symbol _ZN12SynchronizedC1EP9semaphore. NI-VISA Server 4.5 started successfully. task 0xe626f0 (t1) deleted: errno=1835009 (0x1c0001) status=1 (0x1) Warning: module 0x1de0498 (FRC_2CANPlugIn.out) holds reference to undefined symbol _ZN12SynchronizedD1Ev. (unloading partially loaded module FRC_2CANPlugIn.out) ...FRC_2CANPlugIn failed to load. Thanks -Niles (Team 294) |
|
#3
|
|||
|
|||
|
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_UserProgram
task 0x1d84c10 (t2) deleted: errno=0 (0) status=0 (0)
NI-VISA Server 4.5 started successfully.
task 0xe62708 (t1) deleted: errno=1835009 (0x1c0001) status=1 (0x1)
WPILib was compiled from SVN revision 2069
* Loading StartupDlls: FRC_2CANPlugIn
Duplicate symbol:"_Z14wpi_fatal_impliPKcS0_jS0_" loading module FRC_2CANPlugIn.out
2CAN Driver loaded
task 0x21f1ed8 (FRC_2CAN Rx) deleted: errno=0 (0) status=0 (0)
task 0x21ece18 (FRC_2CAN Tx) deleted: errno=0 (0) status=0 (0)
task 0x21f1ed8 (FRC_2CAN Rx) deleted: errno=0 (0) status=0 (0)
Welcome to LabVIEW Real-Time 8.6.1f2
task 0x21ece18 (FRC_2CAN Tx) deleted: errno=0 (0) status=0 (0)
task 0x21f1ed8 (FRC_2CAN Rx) deleted: errno=0 (0) status=0 (0)
task 0x21ece18 (FRC_2CAN Tx) deleted: errno=0 (0) status=0 (0)
task 0x21f1ed8 (FRC_2CAN Rx) deleted: errno=0 (0) status=0 (0)
task 0x21ece18 (FRC_2CAN Tx) deleted: errno=0 (0) status=0 (0)
task 0x21f1f58 (FRC_2CAN Rx) deleted: errno=0 (0) status=0 (0)
task 0x21ece18 (FRC_2CAN Tx) deleted: errno=0 (0) status=0 (0)
task 0x21f20a8 (FRC_2CAN Rx) deleted: errno=0 (0) status=0 (0)
task 0x21ece18 (FRC_2CAN Tx) deleted: errno=0 (0) status=0 (0)
task 0x21f21f8 (FRC_2CAN Rx) deleted: errno=0 (0) status=0 (0)
task 0x21ece18 (FRC_2CAN Tx) deleted: errno=0 (0) status=0 (0)
task 0x21f21f8 (FRC_2CAN Rx) deleted: errno=0 (0) status=0 (0)
>>>>ERROR: status == -10 (0xFFFFFFF6) in sendMessage() in C:/WindRiver/workspace/FRC2010/CANJaguar/CANJaguar.cpp at line 181
>>>>ERROR: status == -52007 (0xFFFF34D9) in sendMessage() in C:/WindRiver/workspace/FRC2010/CANJaguar/CANJaguar.cpp at line 176
Any Reason this would happen? -Niles (Team 294) Last edited by nilesenator : 01-20-2010 at 11:29 PM. |
|
#4
|
|||
|
|||
|
Re: 2CAN Plugin Released
How did you get the plugin to load.
Thanks, Julian |
|
#5
|
|||
|
|||
|
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. |
|
#6
|
||||
|
||||
|
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! |
|
#7
|
||||
|
||||
|
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.
|
|
#8
|
||||
|
||||
|
Re: 2CAN Plugin Released
Quote:
Is the LED on the 2CAN blinking? If yes, is it blinking orange then off or orange then red? |
|
#9
|
|||
|
|||
|
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. |
|
#10
|
||||
|
||||
|
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.
|
|
#11
|
||||
|
||||
|
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 |
|
#12
|
|||
|
|||
|
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 . |
|
#13
|
|||
|
|||
|
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 |
|
#14
|
||||
|
||||
|
Re: 2CAN Plugin Released
Quote:
|
|
#15
|
|||
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Legality of the 2CAN | Geek 2.0 | FRC Control System | 9 | 01-19-2010 08:51 PM |
| cRIO plugin problem | gabrielse | National Instruments LabVIEW and Data Acquisition | 3 | 12-18-2008 11:30 AM |
| Eclipse Plugin Maintaineer? | duane | Programming | 21 | 10-31-2006 10:34 PM |
| Lego 3dsmax plugin? | Ian Curtis | 3D Animation and Competition | 4 | 04-03-2005 06:59 PM |
| inventor plugin | Lev | 3D Animation and Competition | 0 | 01-05-2003 10:53 PM |