Go to Post The more time we spend there, and the more investment we have in the team, the more rewarding it is. - ILAMtitan [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-12-2012, 17:40
phynix phynix is offline
Registered User
FRC #3130 (ERRORs)
Team Role: Programmer
 
Join Date: Sep 2012
Rookie Year: 2012
Location: Minnesota
Posts: 16
phynix is an unknown quantity at this point
Jaguar Power Uneven

Experimenting with wiring and coding in order to be prepared for build season, we are now having a problem where the power given to the CAN Jags in our drive train is not even. The first Jag in the series has 100% power (full speed), the next Jag has about 50%, and the next two are not even running. It resembles the voltage drop in a series circuit. As of now, we aren't sure if it's related to code or wiring. Could you guys help enlighten us as to what is going on?

Thanks in advance!

-Phynix
  #2   Spotlight this post!  
Unread 23-12-2012, 18:50
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,672
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Jaguar Power Uneven

Can you give us a rough wiring diagram? And maybe post your code?

Also, what are the LEDs on the Jaguars doing when you're giving them a full forward command?

I'm having difficulty seeing this as something other than a programming problem unless you have extremely weird or bad wiring or mechanics.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #3   Spotlight this post!  
Unread 23-12-2012, 20:04
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Jaguar Power Uneven

Under what conditions is this occurring? How are you getting these figures? Is it the power supply to the Jaguars or is it the output of the motors being controlled by these Jags?

Barring hardware/firmware defects in the Jag itself, I'm having a hard time imagining a scenario where wiring alone would cause such a situation, given that CAN is purely digital.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
  #4   Spotlight this post!  
Unread 23-12-2012, 22:01
phynix phynix is offline
Registered User
FRC #3130 (ERRORs)
Team Role: Programmer
 
Join Date: Sep 2012
Rookie Year: 2012
Location: Minnesota
Posts: 16
phynix is an unknown quantity at this point
Re: Jaguar Power Uneven

Thanks for the quick responses!

Those figures aren't exact; the first motor was going incredibly fast, while the next motor was going slower (it seemed about half speed), and the other two were not going at all.
I will not have access to the robot until tomorrow morning (can't tell you jag blink codes until then), but we were running a very simple C++ program:

Code:
#include "WPILib.h"

class Robot : public SimpleRobot{
public:
	RobotDrive* drive;
	CANJaguar* jags[4];
	
	Robot(){
		for(int i=0;i<4;i++){
			jags[i]=new CANJaguar(i+1);
		}
		drive=new RobotDrive(jags[0],jags[1],jags[2],jags[3]);
		drive->SetSafetyEnabled(false);
	}
	void Autonomous(){
		bool run=true;
		while(run){
			jags[0]->Set(1.f);
			jags[1]->Set(1.f);
			jags[2]->Set(1.f);
			jags[3]->Set(1.f);
		}
	}
	void OperatorControl()	{
		bool run=true;
		while(run){
			jags[0]->Set(1.f);
			jags[1]->Set(1.f);
			jags[2]->Set(1.f);
			jags[3]->Set(1.f);
		}
	}
};

Last edited by phynix : 23-12-2012 at 22:29.
Closed Thread


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 11:18.

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