View Single Post
  #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.