View Single Post
  #2   Spotlight this post!  
Unread 13-01-2009, 17:29
KRibordy KRibordy is offline
Registered User
FRC #1000 (Cybearcats)
Team Role: Mentor
 
Join Date: Mar 2008
Rookie Year: 2006
Location: Valparaiso, IN
Posts: 36
KRibordy is an unknown quantity at this point
Re: WindRiver "TankDrive"

I think that TankDrive(float leftDrive, float rightDrive) is used in the original program.

But would this work?

within the code, making two variables, one leftHalf and another rightHalf. Then continually assigning each to leftJoystick/2 and rightJoystick/2 respectively?

And then having an
Code:
else if (triggerPressed==1) {
    myRobot->TankDrive(leftHalf, rightHalf);
}
after the if that determines whether to use arcade or tank driving?

Last edited by KRibordy : 13-01-2009 at 17:34.
Reply With Quote