View Single Post
  #1   Spotlight this post!  
Unread 26-01-2012, 19:32
njd231 njd231 is offline
Programmer/Electrician
FRC #4094 (Mars Bandit)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Georgia
Posts: 14
njd231 is an unknown quantity at this point
Jaguar keeps flashing

I'm having a bit of a problem with the Jaguar motors (fyi, I'm using the Jaguar via PWM ports 1 and 2).

I just started doing the programming for the robot. Everything was going well until I actually tried to get the motors to move.. I'm using the SimpleRobot code to get a jist of how everything works. I didn't modify it at all, then I took out the autonomous code, so now it looks like this:

Code:
#include "WPILib.h"

/**
 * This is a demo program showing the use of the RobotBase class.
 * The SimpleRobot class is the base of a robot application that will automatically call your
 * Autonomous and OperatorControl methods at the right time as controlled by the switches on
 * the driver station or the field controls.
 */ 
class RobotDemo : public SimpleRobot
{
	RobotDrive myRobot; // robot drive system
	Joystick stick; // only joystick

public:
	RobotDemo(void):
		myRobot(1, 2),	// these must be initialized in the same order
		stick(1)		// as they are declared above.
	{
		myRobot.SetExpiration(0.1);
	}

	/**
	 * Drive left & right motors for 2 seconds then stop
	 */
	void Autonomous(void)
	{
	}

	/**
	 * Runs the motors with arcade steering. 
	 */
	void OperatorControl(void)
	{
		myRobot.SetSafetyEnabled(true);
		while (IsOperatorControl())
		{
			myRobot.ArcadeDrive(stick); // drive with arcade style (use right stick)
			Wait(0.005);				// wait for a motor update time
		}
	}
};

START_ROBOT_CLASS(RobotDemo);
And the robot still isn't working,

Everything is connected correctly, I fixed the ribbon from the cRIO to the digital sidecar.
All the lights on the digital sidecar light up.
The robot signal stays orange, it doesn't flash or anything.
The Jaguar flashes yellow all the time, even when connected and the joysticks are moving, it doesn't change.

Can anyone help me
Reply With Quote