mirror of
https://github.com/Team4388/2023WayOfTheRobot.git
synced 2026-06-09 00:37:59 -06:00
fixed buttons
This commit is contained in:
@@ -161,7 +161,7 @@ public class RobotContainer {
|
|||||||
.onTrue(new InstantCommand(() -> m_robotArm.killSoftLimits()));
|
.onTrue(new InstantCommand(() -> m_robotArm.killSoftLimits()));
|
||||||
|
|
||||||
// TODO: put this into a variable
|
// TODO: put this into a variable
|
||||||
new JoystickButton(getDeadbandedDriverController(), XboxController.LEFT_BUMPER_BUTTON)
|
new JoystickButton(getDeadbandedOperatorController(), XboxController.LEFT_BUMPER_BUTTON)
|
||||||
.onTrue(new ParallelCommandGroup(
|
.onTrue(new ParallelCommandGroup(
|
||||||
new InstantCommand(() -> m_robotClaw.toggle()),
|
new InstantCommand(() -> m_robotClaw.toggle()),
|
||||||
new SequentialCommandGroup(
|
new SequentialCommandGroup(
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ public class RunArmIn extends CommandBase {
|
|||||||
// Called every time the scheduler runs while the command is scheduled.
|
// Called every time the scheduler runs while the command is scheduled.
|
||||||
@Override
|
@Override
|
||||||
public void execute() {
|
public void execute() {
|
||||||
m_arm.setTeleVel(-1);
|
m_arm.setTeleVel(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Called once the command ends or is interrupted.
|
// Called once the command ends or is interrupted.
|
||||||
|
|||||||
Reference in New Issue
Block a user