View Single Post
  #14   Spotlight this post!  
Unread 12-02-2011, 20:36
Nicholas Norman's Avatar
Nicholas Norman Nicholas Norman is offline
Registered User
AKA: MrBnC
FRC #0070 (More Martians)
Team Role: Driver
 
Join Date: Mar 2010
Rookie Year: 2008
Location: Goodrich
Posts: 7
Nicholas Norman is an unknown quantity at this point
Re: Problem with Jaguar Inputs

initMotors() is at line 28, also I would like to thank you for trying to help me thus far.

Code:
void initMotors()
{
//	jMotor[1] = new Jaguar(4,1); // cim front drive(right)
//	jMotor[2] = new Jaguar(4,2); // cim drive (right)  
	                    
//	jMotor[3] = new Jaguar(4,3); // cim back drive(right)
//	jMotor[4] = new Jaguar(4,4); // cim front drive(left)
	                    
//	jMotor[5] = new Jaguar(4,5); // cim drive(left)
//	jMotor[6] = new Jaguar(4,6); // cim back drive(left)
	
	// for the testing bot
	jMotor[1] = new Jaguar(4,1); // front right
	jMotor[2] = new Jaguar(4,2); // front left
	jMotor[3] = new Jaguar(4,3); // back right
	jMotor[4] = new Jaguar(4,4); // back left
}
The commented motors are for the actual robot when it's ready.