Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   CANJaguar initialization CAN error (http://www.chiefdelphi.com/forums/showthread.php?t=102235)

TheVoid 07-02-2012 22:19

CANJaguar initialization CAN error
 
We are trying to get a jaguar to even communicate with the cRIO using 2CAN ( and previously, the serial cable into a black jaguar ) We are using Windriver / c++ We have gone through and set up our system with the correct addresses, and verified communication with bcd-comm. However, we cannot get our cRIO to talk to the jaguars at all. We know our 2CAN works, because we can Go in to the stat page and see the jaguars temperatures and other information. It's not a problem with calling the Set function too quickly, as it happens when initializing the jaguars. ( It happens one for each jaguar initialized )
Finally, our crio has been imaged with the correct can driver.
Here is our code
The error we are getting is the 44087 error:
<Code>-44087 ERROR: status = -44087 (0xFFFF53C9) receiveMessage ...in getTransaction() in C:/WindRiver/workspace/WPILib/CANJaguar.cpp at line 450
FRC: JaguarCANDriver timed out waiting to receive a response from a Jaguar.

I can't think of what the problem would be, except with the crio image, but that is updated, as well as everything else, to the most current version.
Thanks for the help. :(

mikets 07-02-2012 22:25

Re: CANJaguar initialization CAN error
 
You need to enable the Jaguars. You may have done that in your CANMechanumDrive class but since you did not post that, I can't tell.
Code:

CANJaguar::EnableControl();

TheVoid 07-02-2012 23:03

Re: CANJaguar initialization CAN error
 
To my understanding, that is only required when using the kPosition mode. We are in kPercentVBus, so it shouldn't apply, or is that wrong? Also, wouldn't that not matter if it's being thrown just when initializing the jaguars? We are making no calls to Set on the jaguars yet.

mikets 07-02-2012 23:23

Re: CANJaguar initialization CAN error
 
You are right. According to the source code, you don't really need it because it will be automatically enabled for kPercentVbus and kVoltage modes.


All times are GMT -5. The time now is 17:38.

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