Go to Post Regardless of whether the max allowed weight is 10 pounds or 1,000 pounds, everyone is going to need at least one ounce more. - gblake [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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
  #1   Spotlight this post!  
Unread 22-04-2010, 19:15
DWirth DWirth is offline
Registered User
FRC #2509
 
Join Date: Feb 2009
Location: Hutch
Posts: 10
DWirth is an unknown quantity at this point
Joystick Assigning/ Change to Tank Drive

Hello
Our team next year will be using C++ instead of LabView, so we're learning C++ now.
I am not sure in the MyRobot.cpp file how you assign a joystick to be on usb 1 or 2. Or atleast different from the original joystick in the file. I've added this line under the first joystick:

Joystick *stick2; //Right joystick

Will this make it different than the first? And for LabView users, would the "stick2" in that line be equivalent to a RefNum names? I've also changed the arcade mode line to:

myRobot->TankDrive(stick,stick2); //

Will this use the two joysticks to drive each side? Also I'm not sure how you tell which PWM you use for each Victor or Jaguar.

A lot of questions, so I thank you for reading it and for any help and clarificaition you can give me.
D. Wirth 2509
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
Tank Drive Joystick thatoneguy23 Programming 8 08-02-2010 21:28
Tank Drive vs. Omni Directional Drive jamie_1930 General Forum 9 24-01-2010 22:50
Change joystick to pwm mapping Joe Lewis Programming 3 30-03-2005 19:27
Assigning Joystick buttons.... archiver 2001 5 24-06-2002 00:59
Single Joystick Tank Steering archiver 2001 5 23-06-2002 22:49


All times are GMT -5. The time now is 13:50.

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