View Single Post
  #15   Spotlight this post!  
Unread 27-01-2010, 00:58
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Black jaguars: not working

Quote:
Originally Posted by ellisk View Post
I tried it with the 2CAN bus. Now, instead of giving me error messages, it just silently fails. I've updated the firmware on the 2CAN, but it still doesn't work. Any ideas? Here's the code I'm using:

Code:
#include "WPILib.h"
#include "2CAN.h"



class Spy : public SimpleRobot
{
	JaguarOverCAN *mtr;

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

	void Autonomous(void)
	{

	}

	void OperatorControl(void)
	{
		mtr = new JaguarOverCAN (2);
		while (true) {
			mtr->Set(0.5);
			Wait(0.5);
		}
	}
};
You are using the old JaguarOverCAN class that CTRE released before the season began and before the rules were released. You need to be using the unified CANJaguar class for it to work with the FRC 2010 control system.

-Joe
Reply With Quote