Go to Post We really are nerds, aren't we? - Eria4044 [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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
  #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
 


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 02:03.

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