@Override
protected void execute() {
- final double left = OI.leftJoystick.getY();
- final double right = OI.rightJoystick.getY();
+ final double thrust = OI.rightJoystick.getY();
+ final double twist = OI.rightJoystick.getTwist();
- Robot.getDriveTrain().joystickDrive(left, right);
+ Robot.getDriveTrain().joystickDrive(-thrust, -twist);
}
@Override
package org.usfirst.frc.team3501.robot.subsystems;
import org.usfirst.frc.team3501.robot.Constants;
+import org.usfirst.frc.team3501.robot.commands.driving.JoystickDrive;
import com.ctre.CANTalon;
robotDrive.tankDrive(left, right);
}
- public void joystickDrive(final double left, final double right) {
- robotDrive.tankDrive(left, right);
+ public void joystickDrive(final double thrust, final double twist) {
+ robotDrive.arcadeDrive(thrust, twist);
}
public void stop() {
@Override
protected void initDefaultCommand() {
+ setDefaultCommand(new JoystickDrive());
}
}