View Single Post
  #1   Spotlight this post!  
Unread 01-22-2010, 07:36 PM
ellisk ellisk is offline
Registered User
FRC #1540
 
Join Date: Dec 2008
Location: Vancouver, WA
Posts: 41
ellisk is on a distinguished road
Black jaguars: not working

I am trying to get the new black jaguars working and am getting errors when I attempt to use them. Here is the setup and the errors I am getting:

First, the jaguars have been updated (done by another member of our team). I put the file at http://firstforge.wpi.edu/sf/frs/do/...agbridgeplugin onto the cRIO via FTP according to the directions at http://firstforge.wpi.edu/sf/sfmain/...ects.canjaguar, under the heading "Getting Started."

I got the Jaguar code from http://firstforge.wpi.edu/sf/frs/do/...anjaguar_for_c and modified it so that it compiles, as shown in this thread: http://www.chiefdelphi.com/forums/sh...ad.php?t=80706

The code I am using is:
Code:
// This code has been simplified for the purposes of posting.
#include "WPILib.h"
#include "CANJaguar.h"

class Spy : public SimpleRobot
{
	Joystick* leftStick;
	CANJaguar* frontRightMotor;

public:
	Spy(void)
	{
		GetWatchdog().SetEnabled(false);

		leftStick = new Joystick(1);
		frontRightMotor = new CANJaguar(1);
	}

	void Autonomous(void)
	{

	}

	void OperatorControl(void)
	{
		while (true)
			frontRightMotor->Set(leftStick->GetY());
	}
};

START_ROBOT_CLASS(Spy);
When I run the code, I get the following error, repeatedly, in the console (and the Jaguar, of course, does not run):
Code:
>>>>ERROR: status == -52007 (0xFFF34D9) in sendMessage() in C:/windriver/workspace/Spy/CANJaguar.cpp at line 176
I *assume* that the correct port is 1; we're daisy-chaining our CAN Jaguars, and the Jaguar of interest is the first one in the chain. I've also tried 0 as the port for the jaguar, which gives the same error.

Does anyone know what's going on? I would really appreciate any help.

Thanks,
Kevin
Reply With Quote