From 87e1df068c43950dc135c221f63463ef3d35fd75 Mon Sep 17 00:00:00 2001 From: Brad Miller Date: Mon, 5 Jan 2015 17:32:19 -0500 Subject: [PATCH] Fixed a null pointer exception in the mecanum drive sample program (Fixes artf3974) Change-Id: I9518cd49ca815b9e1dc3ab63b7a4ee7034e5b444 --- .../MecanumDrive/src/org/usfirst/frc/team190/robot/Robot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclipse-plugins/edu.wpi.first.wpilib.plugins.java/resources/templates/examples/MecanumDrive/src/org/usfirst/frc/team190/robot/Robot.java b/eclipse-plugins/edu.wpi.first.wpilib.plugins.java/resources/templates/examples/MecanumDrive/src/org/usfirst/frc/team190/robot/Robot.java index 4c82203076..492e13a2f0 100755 --- a/eclipse-plugins/edu.wpi.first.wpilib.plugins.java/resources/templates/examples/MecanumDrive/src/org/usfirst/frc/team190/robot/Robot.java +++ b/eclipse-plugins/edu.wpi.first.wpilib.plugins.java/resources/templates/examples/MecanumDrive/src/org/usfirst/frc/team190/robot/Robot.java @@ -25,10 +25,10 @@ public class Robot extends SampleRobot { final int joystickChannel = 0; public Robot() { - robotDrive.setExpiration(0.1); robotDrive = new RobotDrive(frontLeftChannel, rearLeftChannel, frontRightChannel, rearRightChannel); robotDrive.setInvertedMotor(MotorType.kFrontLeft, true); // invert the left side motors robotDrive.setInvertedMotor(MotorType.kRearLeft, true); // you may need to change or remove this to match your robot + robotDrive.setExpiration(0.1); stick = new Joystick(joystickChannel); }