Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Control System (http://www.chiefdelphi.com/forums/forumdisplay.php?f=177)
-   -   2CAN Plugin Released (http://www.chiefdelphi.com/forums/showthread.php?t=80612)

Peter Johnson 23-01-2010 17:59

Re: 2CAN Plugin Released
 
I'm now having an issue with the 2CAN plugin vs. camera dashboard. If the 2CANPlugin is loaded in StartupDlls, I get no camera at the dashboard (or camera data inside the UserProgram). If I delete the 2CANPlugin from the list of StartupDlls and reboot the cRIO, I get camera data at the dashboard. Any suggestions? I'm guessing there's some sort of networking contention issue between the UserProgram and the plugin? There is no CANJaguar code in the UserProgram, only camera dashboard/processing.

jhersh 24-01-2010 03:31

Re: 2CAN Plugin Released
 
Quote:

Originally Posted by peterjohnson (Post 904480)
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.

The plugin needs to be loaded before the user program so that when the user program tries to use the CANJaguar class it won't get an error about the plugin not being loaded. The plugin definitely needs to not depend on WPILib entry-points.


All times are GMT -5. The time now is 03:23.

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