some changes

This commit is contained in:
aarav18
2022-03-05 23:43:15 -07:00
parent 772bd4d8dd
commit 33f59d4931
2 changed files with 2 additions and 2 deletions
@@ -131,7 +131,7 @@ public class RobotContainer {
// moves climber in xy space with two-axis input from the operator controller
m_robotClimber.setDefaultCommand(
new RunCommand(() -> m_robotClimber.controlWithInput(getOperatorController().getLeftX(),
getOperatorController().getLeftY()), m_robotClimber));
getOperatorController().getLeftY()), m_robotClimber).withName("Climber controlWithInput defaultCommand"));
// Turret default command
// m_robotTurret.setDefaultCommand(new AimToCenter(m_robotTurret,
@@ -165,7 +165,7 @@ public class Climber extends SubsystemBase {
{0, 0, 1}
};
if (m_robotPosition < m_robotAngle || m_robotPosition > m_robotAngle){
if (m_robotPosition != m_robotAngle){
setRobotAngle(ClimberConstants.ROBOT_ANGLE_ID, rotMax, m_robotPosition);
}