//TODO - Could we also check if the elevator is up and limit speed?
@Override
    public void execute() {
        double y = -Constants.joystick.getY();
        double z = Constants.joystick.getZ();
        //TODO - Could we also check if the elevator is up and limit speed?
        if(y < Constants.REVERSE_MAX_SPEED) {
            y = Constants.REVERSE_MAX_SPEED;
        }
        if(z < Constants.LEFT_MAX_SPEED ) {
            z = Constants.LEFT_MAX_SPEED;
        } else if(z > Constants.RIGHT_MAX_SPEED){
            z = Constants.RIGHT_MAX_SPEED;
        }
        driveSubsystem.getDiffDrive().arcadeDrive(y, z);
    }
double y = -Constants.joystick.getY();
double z = Constants.joystick.getZ();
//TODO - Could we also check if the elevator is up and limit speed?
if(y < Constants.REVERSE_MAX_SPEED) {
y = Constants.REVERSE_MAX_SPEED;
@Override
public void execute() {
double y = -Constants.joystick.getY();
double z = Constants.joystick.getZ();
//TODO - Could we also check if the elevator is up and limit speed?
if(y < Constants.REVERSE_MAX_SPEED) {
y = Constants.REVERSE_MAX_SPEED;
}
if(z < Constants.LEFT_MAX_SPEED ) {
z = Constants.LEFT_MAX_SPEED;
} else if(z > Constants.RIGHT_MAX_SPEED){
z = Constants.RIGHT_MAX_SPEED;
}
driveSubsystem.getDiffDrive().arcadeDrive(y, z);
}
@Override
public void execute() {
double y = -Constants.joystick.getY();
double z = Constants.joystick.getZ();
//TODO - Could we also check if the elevator is up and limit speed?
if(y < Constants.REVERSE_MAX_SPEED) {
y = Constants.REVERSE_MAX_SPEED;
}
if(z < Constants.LEFT_MAX_SPEED ) {
z = Constants.LEFT_MAX_SPEED;
} else if(z > Constants.RIGHT_MAX_SPEED){
z = Constants.RIGHT_MAX_SPEED;
}
driveSubsystem.getDiffDrive().arcadeDrive(y, z);
}