Go to Post Sometimes, it takes years to gain respect and to learn to understand the opportunities that avail themselves to those who pay attention, are willing to learn from the best, and dig deeper into understanding what it means to be a competitive FRC team. - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #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
 


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
Serial to CAN Gateway in new Black Jaguars? dmcguire3006 Electrical 54 01-26-2010 07:32 AM
Jaguars arent working yoavh360 Electrical 6 01-19-2010 05:20 PM
Victors and Jaguars not Receiving Signal? excel2474 Electrical 1 02-12-2009 04:41 PM
jaguars suddenly not working Mr. E Technical Discussion 1 02-07-2009 09:09 PM
Jaguars working with 2.4 Ghz R/C NOV8R Technical Discussion 0 01-09-2009 04:15 PM


All times are GMT -5. The time now is 09:27 AM.

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


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