View Single Post
  #7   Spotlight this post!  
Unread 16-01-2012, 14:21
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: Jaguars are blinking yellow

Yes, those are the PWM cables. Do note that brown-red-orange is not the only color coding scheme for PWM cables (white-red-black, yellow-red-black, and yellow-red-orange are also accepted standards). Keep in mind that the USER button is the calibration button, and for your purposes (or at least your current ones) you should not be playing with this button. Messinig up the calibration will have serious effects on motor control and hamper troubleshooting.

Furthermore, that line of code does not initialize the Jaguars, but rather creates a RobotDrive object that will allow you to do so. See this edited sample code from the Getting Started Guide to Java:

Code:
public class RobotTemplate extends SimpleRobot {
  RobotDrive drive = new RobotDrive(1, 2);
  Joystick leftStick = new Joystick(1);
  Joystick rightStick = new Joystick(2);

  public void operatorControl() {
     while (isOperatorControl() && isEnabled()) // loop during enabled teleop mode
    {
      drive.tankDrive(leftStick, rightStick); // drive with the joysticks
      Timer.delay(0.005);
    }
  }
}
Emphasis mine. Of course, your code may be different, but keep in mind that simply creating drive does not generate a Jaguar signal, because you haven't created a signal source. The highlighted code above does that.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners