OCCRA
Go to Post This is ChiefDelphi. There are threads on everything! - LauraN [more]
Home
Go Back   Chief Delphi > Technical > Control System
CD-Events   CD-Media   CD-Spy   FRC-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-19-2010, 06:26 PM
Mike Copioli's Avatar
Mike Copioli Mike Copioli is offline
You make it pretty We make it dance
FRC #3539 (The Byting Bulldogs)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2001
Location: romeo
Posts: 425
Mike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond repute
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.
__________________
LINUX != EMBEDDED

Mike Copioli
CTRE Hardware Engineer
http://www.crosstheroadelectronics.com

Team 3539 The Byting Bull Dogs
2013 Michigan State Champions

Team 217 The Thunder Chickens
2006 World Champions
2008 World Champions
2009 Michigan State Champions
Reply With Quote
  #2   Spotlight this post!  
Unread 01-20-2010, 11:13 PM
nilesenator nilesenator is offline
Registered User
FRC #0294
 
Join Date: Aug 2008
Location: Hermosa Beach
Posts: 19
nilesenator will become famous soon enoughnilesenator will become famous soon enough
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.
Can anybody explain why this has been happening?

Thanks

-Niles (Team 294)
__________________
-Programmers are result oriented. Tell them what you want, and they'll give you what they think you would have asked for if you had any idea what you were talking about. -IDK who said this
Reply With Quote
  #3   Spotlight this post!  
Unread 01-20-2010, 11:26 PM
nilesenator nilesenator is offline
Registered User
FRC #0294
 
Join Date: Aug 2008
Location: Hermosa Beach
Posts: 19
nilesenator will become famous soon enoughnilesenator will become famous soon enough
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
The status light appears to be blinking orange/red.

Any Reason this would happen?

-Niles (Team 294)
__________________
-Programmers are result oriented. Tell them what you want, and they'll give you what they think you would have asked for if you had any idea what you were talking about. -IDK who said this

Last edited by nilesenator : 01-20-2010 at 11:29 PM.
Reply With Quote
  #4   Spotlight this post!  
Unread 01-21-2010, 10:37 PM
1jbinder 1jbinder is offline
Registered User
FRC #0852
 
Join Date: Jan 2008
Location: Athenian School
Posts: 35
1jbinder is an unknown quantity at this point
Re: 2CAN Plugin Released

How did you get the plugin to load.
Thanks,
Julian
Reply With Quote
  #5   Spotlight this post!  
Unread 01-22-2010, 03:18 AM
Peter Johnson Peter Johnson is offline
With great power comes great I^2*R
FRC #0294 (Beach Cities Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Redondo Beach, CA
Posts: 139
Peter Johnson is a splendid one to beholdPeter Johnson is a splendid one to beholdPeter Johnson is a splendid one to beholdPeter Johnson is a splendid one to beholdPeter Johnson is a splendid one to beholdPeter Johnson is a splendid one to beholdPeter Johnson is a splendid one to beholdPeter Johnson is a splendid one to behold
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.
Reply With Quote
  #6   Spotlight this post!  
Unread 01-22-2010, 12:03 PM
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 735
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Send a message via Skype™ to Jon236
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!
__________________
Jon Mittelman
Infinite Loop Mentor 2011-2013

TechnoTicks Mentor 2000-2011
Championship Chairman's Award 2009


Judge and Inspector 2010-2012 Championships
Judge Advisor Tel Aviv Regional 2007-2012
Judge Advisor Pine Tree Regional 2013
Maine Regional Planning Committee
New England District Planning Committee
Lead Inspector Microsoft Tel Aviv Regional 2006-2008
Judge & Lead Inspector GM/Technion Tel Aviv Regional 2006
Judge UTC Hartford Regional 2006
Reply With Quote
  #7   Spotlight this post!  
Unread 01-22-2010, 03:00 PM
Mike Copioli's Avatar
Mike Copioli Mike Copioli is offline
You make it pretty We make it dance
FRC #3539 (The Byting Bulldogs)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2001
Location: romeo
Posts: 425
Mike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond repute
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.
__________________
LINUX != EMBEDDED

Mike Copioli
CTRE Hardware Engineer
http://www.crosstheroadelectronics.com

Team 3539 The Byting Bull Dogs
2013 Michigan State Champions

Team 217 The Thunder Chickens
2006 World Champions
2008 World Champions
2009 Michigan State Champions
Reply With Quote
  #8   Spotlight this post!  
Unread 01-22-2010, 04:54 PM
Mike Copioli's Avatar
Mike Copioli Mike Copioli is offline
You make it pretty We make it dance
FRC #3539 (The Byting Bulldogs)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2001
Location: romeo
Posts: 425
Mike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond repute
Re: 2CAN Plugin Released

Quote:
Originally Posted by nilesenator View Post
The status light appears to be blinking orange/red.

Any Reason this would happen?

-Niles (Team 294)


Is the LED on the 2CAN blinking?

If yes, is it blinking orange then off or orange then red?
__________________
LINUX != EMBEDDED

Mike Copioli
CTRE Hardware Engineer
http://www.crosstheroadelectronics.com

Team 3539 The Byting Bull Dogs
2013 Michigan State Champions

Team 217 The Thunder Chickens
2006 World Champions
2008 World Champions
2009 Michigan State Champions
Reply With Quote
  #9   Spotlight this post!  
Unread 01-22-2010, 06:31 PM
Peter Johnson Peter Johnson is offline
With great power comes great I^2*R
FRC #0294 (Beach Cities Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Redondo Beach, CA
Posts: 139
Peter Johnson is a splendid one to beholdPeter Johnson is a splendid one to beholdPeter Johnson is a splendid one to beholdPeter Johnson is a splendid one to beholdPeter Johnson is a splendid one to beholdPeter Johnson is a splendid one to beholdPeter Johnson is a splendid one to beholdPeter Johnson is a splendid one to behold
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.
Reply With Quote
  #10   Spotlight this post!  
Unread 01-22-2010, 07:23 PM
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 735
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Send a message via Skype™ to Jon236
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.
__________________
Jon Mittelman
Infinite Loop Mentor 2011-2013

TechnoTicks Mentor 2000-2011
Championship Chairman's Award 2009


Judge and Inspector 2010-2012 Championships
Judge Advisor Tel Aviv Regional 2007-2012
Judge Advisor Pine Tree Regional 2013
Maine Regional Planning Committee
New England District Planning Committee
Lead Inspector Microsoft Tel Aviv Regional 2006-2008
Judge & Lead Inspector GM/Technion Tel Aviv Regional 2006
Judge UTC Hartford Regional 2006
Reply With Quote
  #11   Spotlight this post!  
Unread 01-22-2010, 07:46 PM
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
FRC #0217 (Thunder Chickens)
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 35
ozrien is just really niceozrien is just really niceozrien is just really niceozrien is just really niceozrien is just really nice
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
__________________
After years of firmware engineering I am convinced that successful programmers must simply enjoy pain.

Omar Zrien
Intrepid Control Systems
Cross The Road Electronics - Chief Software
Team 217 The Thunder Chickens
2006 World Champions
2008 World Champions
Reply With Quote
  #12   Spotlight this post!  
Unread 01-22-2010, 09:01 PM
Peter Johnson Peter Johnson is offline
With great power comes great I^2*R
FRC #0294 (Beach Cities Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Redondo Beach, CA
Posts: 139
Peter Johnson is a splendid one to beholdPeter Johnson is a splendid one to beholdPeter Johnson is a splendid one to beholdPeter Johnson is a splendid one to beholdPeter Johnson is a splendid one to beholdPeter Johnson is a splendid one to beholdPeter Johnson is a splendid one to beholdPeter Johnson is a splendid one to behold
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 .
Reply With Quote
  #13   Spotlight this post!  
Unread 01-22-2010, 10:10 PM
rrossbach rrossbach is offline
Lead Geek
FRC #2607 (RoboVikings)
Team Role: Mentor
 
Join Date: Nov 2008
Rookie Year: 2008
Location: Warrington PA
Posts: 76
rrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to behold
Send a message via Yahoo to rrossbach Send a message via Skype™ to rrossbach
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
Reply With Quote
  #14   Spotlight this post!  
Unread 01-23-2010, 11:41 AM
Mike Copioli's Avatar
Mike Copioli Mike Copioli is offline
You make it pretty We make it dance
FRC #3539 (The Byting Bulldogs)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2001
Location: romeo
Posts: 425
Mike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond repute
Re: 2CAN Plugin Released

Quote:
Originally Posted by rrossbach View Post
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
Yes, it will be available soon. As soon as we update the plugin.
__________________
LINUX != EMBEDDED

Mike Copioli
CTRE Hardware Engineer
http://www.crosstheroadelectronics.com

Team 3539 The Byting Bull Dogs
2013 Michigan State Champions

Team 217 The Thunder Chickens
2006 World Champions
2008 World Champions
2009 Michigan State Champions
Reply With Quote
  #15   Spotlight this post!  
Unread 01-23-2010, 01:37 PM
1jbinder 1jbinder is offline
Registered User
FRC #0852
 
Join Date: Jan 2008
Location: Athenian School
Posts: 35
1jbinder is an unknown quantity at this point
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
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 09:21 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi