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?