View Single Post
  #5   Spotlight this post!  
Unread 17-02-2011, 11:19
omalleyj omalleyj is offline
Registered User
AKA: Jim O'Malley
FRC #1279 (Cold Fusion)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: New Jersey
Posts: 132
omalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to behold
Re: robotDrive.drive help?

Quote:
Originally Posted by RoboElite640 View Post
So we had the program work so that if (stickRight.getRawButton(1) == true)
{robotDrive.drive(1.0,0.0); }
if (stickLeft.getRawButton(1) == true)_
{robotDrive.drive(0.2,0.0); }

but when we try this it works partially. When we push button 1 on stickRight, it moves faster but only one motor moves faster. Vice versa with button 1 on stickLeft, only one motor moves slow. Any help?
The other advice given has been good but don't address directly your statement that only one motor works in each case. The 'if' control statements shouldn't affect the .drive that way regardless of your reason for wantign to do it. What does your RobotDrive constructor call look like?
Reply With Quote