mirror of
https://github.com/Team4388/2019-Hit-or-Miss.git
synced 2026-06-09 00:28:05 -06:00
Merge branch 'Wrist' of https://github.com/Team4388/2019-Hit-or-Miss into Wrist
This commit is contained in:
@@ -103,7 +103,8 @@ public class Robot extends IterativeRobot
|
||||
updateChoosers();
|
||||
controlLoop.start();
|
||||
drive.resetEncoders();
|
||||
drive.endGyroCalibration();
|
||||
drive.endGyroCalibration();
|
||||
//Arm.setArmControlMode(Arm.ArmControlMode.JOYSTICK_MANUAL);
|
||||
|
||||
updateStatus();
|
||||
}
|
||||
|
||||
@@ -112,6 +112,8 @@ public class Arm extends Subsystem implements Loop
|
||||
return this.armControlMode;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public void setSpeedJoystick(double speed) {
|
||||
motor1.set(ControlMode.PercentOutput, speed);
|
||||
@@ -127,7 +129,7 @@ public class Arm extends Subsystem implements Loop
|
||||
|
||||
public void updatePositionPID(double targetPositionInches) {
|
||||
targetPositionInchesPID = limitPosition(targetPositionInches);
|
||||
double startPositionInches = motor1.getPositionWorld();
|
||||
double startPositionInches = motor1.getPositionWorld()*Y_POSITION_MATH;
|
||||
mpController.setTarget(targetPositionInchesPID, targetPositionInchesPID > startPositionInches ? KF_UP : KF_DOWN);
|
||||
}
|
||||
|
||||
@@ -165,6 +167,8 @@ public class Arm extends Subsystem implements Loop
|
||||
case JOYSTICK_MANUAL:
|
||||
controlManualWithJoystick();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user