View Single Post
  #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