We are using a black jag to serial connection, and that is working. We have updated all of the firmware on the jaguars, firmware 92, and have updated the firmware on the crio, to version 28 and have set it to use the black jaguar as the start of the CAN. Yet no matter how we have done we cannot get the motors to run. On the driver station we get the error 44087- in set transaction() in C:/windriver/workspace/WPILIB/CANJaguar.cpp, which we found to be dataBuffer[0] = reference. Anyone know what the problem is, or do you have any code for CAN that we could see? Thanks!
Here is a fraction of our code which we are using for the CAN Jaguars:
Code:
//We defined:
CANJaguar *jag;
//Then in OperatorControl, we had:
jag = new CANJaguar(3, CANJaguar::kSpeed);
jag->ConfigEncoderCodesPerRev(360);
jag->ConfigMaxOutputVoltage(6.0);
jag->ConfigNeutralMode(CANJaguar::kNeutralMode_Brake);
jag->SetSpeedReference(CANJaguar::kSpeedRef_None);
jag->EnableControl();
//And in the IsOperatorControl() loop, we have:
jag->Set(0.5);