Go to Post No way thats Dean... he didn't give an hour long speech :p - AndyB [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 Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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


All times are GMT -5. The time now is 12:24.

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