Go to Post I'm so conflicted right now. On one hand, you made the same page as a celebrity. On the other hand.... Justin Bieber. - Akash Rastogi [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

 
Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 16-02-2010, 16:10
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 586
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
Reply


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 01-02-2010 08:59
Tracker Code Yellow Eyes Programming 3 21-02-2004 11:14
Infrared tracker Nick R. Electrical 1 14-02-2004 17:24
IR Sensor-tracker.zip alexrobotics Technical Discussion 7 06-02-2004 09:09
score tracker VanWEric Programming 21 06-01-2003 16:58


All times are GMT -5. The time now is 09:40.

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