View Single Post
  #1   Spotlight this post!  
Unread 13-01-2009, 17:20
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 325
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: WindRiver "TankDrive"

You have a couple ways on implementing it. I wouldn't suggest editing the WPILib, at least not yet as there will still be patches that may overwrite what you do. You could create your own class and inherit that. Or you could create your own Joystick class instead, inheriting the Joystick and adding the scaling to the GeyY() function (or if you assign a different axis for drive). There is also RobotDrive::TankDrive(float leftDrive, float rightDrive) that you could use when the trigger is pressed. The function is defined in RobotDrive.h
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
Reply With Quote