more changes
This commit is contained in:
parent
54a7f87eb3
commit
e5d5848f2a
@ -58,6 +58,7 @@ public class OI {
|
|||||||
// joystickButtons[1][5].whileHeld(new SetArmPosition(RobotMap.mainArmPresetLowShot));
|
// joystickButtons[1][5].whileHeld(new SetArmPosition(RobotMap.mainArmPresetLowShot));
|
||||||
joystickButtons[1][7].whileHeld(new MoveArm(1));
|
joystickButtons[1][7].whileHeld(new MoveArm(1));
|
||||||
joystickButtons[1][8].whileHeld(new MoveArm(-1));
|
joystickButtons[1][8].whileHeld(new MoveArm(-1));
|
||||||
|
joystickButtons[1][9].whileHeld(new SetArmPosition(110));
|
||||||
}
|
}
|
||||||
public Joystick[] getJoysticks() {
|
public Joystick[] getJoysticks() {
|
||||||
return joysticks;
|
return joysticks;
|
||||||
|
@ -11,12 +11,11 @@ public class AlignVertical extends CommandBase {
|
|||||||
}
|
}
|
||||||
// Called just before this Command runs the first time
|
// Called just before this Command runs the first time
|
||||||
protected void initialize() {
|
protected void initialize() {
|
||||||
mainArm.setSetpoint(mainArm.getShooterAngleError()+50);
|
|
||||||
mainArm.enable();
|
|
||||||
}
|
}
|
||||||
// Called repeatedly when this Command is scheduled to run
|
// Called repeatedly when this Command is scheduled to run
|
||||||
protected void execute() {
|
protected void execute() {
|
||||||
//Move the arm stop
|
mainArm.setSetpoint(mainArm.getShooterAngleError()+50);
|
||||||
|
mainArm.enable();
|
||||||
}
|
}
|
||||||
// Make this return true when this Command no longer needs to run execute()
|
// Make this return true when this Command no longer needs to run execute()
|
||||||
protected boolean isFinished() {
|
protected boolean isFinished() {
|
||||||
|
@ -8,7 +8,7 @@ public class AlignHorizontal extends CommandBase {
|
|||||||
error = visionHelper.getHorizontalError();
|
error = visionHelper.getHorizontalError();
|
||||||
driveBase.setDriveEnabled(false);
|
driveBase.setDriveEnabled(false);
|
||||||
driveBase.resetGyro();
|
driveBase.resetGyro();
|
||||||
mainArm.setSetpoint(90);
|
mainArm.setSetpoint(110);
|
||||||
mainArm.enable();
|
mainArm.enable();
|
||||||
}
|
}
|
||||||
protected boolean isFinished() {
|
protected boolean isFinished() {
|
||||||
|
Loading…
Reference in New Issue
Block a user