Go to Post Right, play to win. Play to win the event or play to win one match? This year, unfortunately, they are not the same thing. - Paul Copioli [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 02-16-2010, 04:10 PM
BradAMiller BradAMiller is online now
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 587
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Circle Tracker Demo

Quote:
Originally Posted by nomad725 View Post
I am trying to port the demo code into our code when I found out the Tracker demo uses the robot drive class. Anyone have/know how to change this into two independent Jaguar motors?
The RobotDrive class will work with either 2 or 4 Jaguar controlled motors. You just need to call the constructor with the port numbers that each of the Jaguars is connected to. You can find the call to the constructor in the 4th line in the CircleTrackerDemo class definition:
RobotDrive drive = new RobotDrive(1, 2);

You can also replace the 1, 2 with two Jaguar objects if that is what you're asking:

Jaguar jag1 = new Jaguar(1);
Jaguar jag2 = new Jaguar(2);
new RobotDrive(jag1, jag2);
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Line Tracker Mounting Bracket Zuelu562 VEX 0 02-01-2010 08:59 AM
Tracker Code Yellow Eyes Programming 3 02-21-2004 11:14 AM
Infrared tracker Nick R. Electrical 1 02-14-2004 05:24 PM
IR Sensor-tracker.zip alexrobotics Technical Discussion 7 02-06-2004 09:09 AM
score tracker VanWEric Programming 21 01-06-2003 04:58 PM


All times are GMT -5. The time now is 08:33 AM.

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