mirror of
https://github.com/Team4388/2022NoWayHome.git
synced 2026-06-09 00:38:05 -06:00
some changes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user