View Single Post
  #8   Spotlight this post!  
Unread 07-02-2011, 07:04
Robby Unruh's Avatar
Robby Unruh Robby Unruh is offline
*insert random dial-up tone here*
FRC #3266 (Robots R Us)
Team Role: Coach
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Eaton, OH
Posts: 338
Robby Unruh will become famous soon enough
Re: Programming Mecanum?

I've had a little problem programming the mecanum wheels myself. In my post before I said I had inverted the motors to strafe. Well, turns out that makes a nasty ugly strafe. Anyone have tips regarding how to actually program a strafe with arcade drive?

Thanks.


here's our current code:
Code:
if(joystickL.getTrigger() && state == 0) {
    robotDrive.setInvertedMotor(frontLEFT, true);
    robotDrive.setInvertedMotor(rearRIGHT, true);
    // robotDrive.setInvertedMotor(frontRIGHT, false);
    // robotDrive.setInvertedMotor(rearLEFT, false);
    this.state = 1;
} else if(joystickL.getTrigger() && state == 1) {
    robotDrive.setInvertedMotor(frontLEFT, false);
    robotDrive.setInvertedMotor(rearRIGHT, false);
    // robotDrive.setInvertedMotor(frontRIGHT, false);
    // robotDrive.setInvertedMotor(rearLEFT, false);
    this.state = 0;
}
__________________
[Robots R Us #3266]
2015: Georgia Southern Classic (Winners / Thanks 1319 & 1648!), Queen City
2014: Crossroads, Queen City
2013: Buckeye, Queen City, Crossroads
2012: Buckeye, Queen City

2011: Buckeye
2010: Buckeye
Reply With Quote