View Single Post
  #4   Spotlight this post!  
Unread 12-02-2015, 19:31
michaelyork michaelyork is offline
Registered User
FRC #3680 (Elemental Dragons)
Team Role: Programmer
 
Join Date: Mar 2014
Rookie Year: 2014
Location: Statesville, NC, United States
Posts: 18
michaelyork is an unknown quantity at this point
Question Re: Programming Mecanum Wheels

I have no idea why this code is not working, any ideas, I have been stressing about it for the past two hours.
Code:
        double magnitude = driveStick.getMagnitude();
        double direction = driveStick.getDirectionDegrees();
        double rotation = otherStick.getTwist();
        RobotDrive driveTrain = new RobotDrive(3,4,5,6);
        while (isEnabled() && isOperatorControl()) {
        	
        	driveTrain.mecanumDrive_Polar(magnitude, direction, rotation);
        	Timer.delay(0.005);
        }
This is located in teleopPeriodic() in Robot.java.

Any ideas?
Reply With Quote