View Single Post
  #7   Spotlight this post!  
Unread 22-03-2013, 00:56
ekapalka's Avatar
ekapalka ekapalka is offline
Registered User
FRC #3216
 
Join Date: Dec 2012
Location: Bermuda
Posts: 277
ekapalka has a spectacular aura aboutekapalka has a spectacular aura about
Re: A few questions about C++

probably something like
Code:
myRobot.TankDrive(Stick1->GetRawAxis(2)*.5 , Stick2->GetRawAxis(2)*.5);
I'm not sure which axis is which for your controller (where the number 2 should be substituted with the Y axis of your controller for tank drive). I'm also not sure that you're using tank drive Just multiply your joystick value by whatever you want to reduce the speed by, regardless of whether you're using arcade or tank or holonomic or whatever.
Reply With Quote