This repository has been archived by the owner on Oct 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* operator board implemented to do: update button numbers * updated button bindings * Reassigned joystick mappings - Joseph An * fix shooter subsys requirements - delaynie * added button for reset climber * formatting Co-authored-by: delaynieym <[email protected]> Co-authored-by: Delaynie McMillan <[email protected]> Co-authored-by: --global <--global>
- Loading branch information
1 parent
401b048
commit c3b81e9
Showing
13 changed files
with
206 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
src/main/java/frc/robot/commands/ClimberControllerCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
package frc.robot.commands; | ||
|
||
import edu.wpi.first.wpilibj.XboxController; | ||
import edu.wpi.first.wpilibj.GenericHID.Hand; | ||
import edu.wpi.first.wpilibj2.command.CommandBase; | ||
import frc.robot.Constants; | ||
import frc.robot.OperatorBoard; | ||
import frc.robot.Utils; | ||
import frc.robot.subsystems.ClimberSubsystem; | ||
|
||
public class ClimberControllerCommand extends CommandBase{ | ||
public class ClimberControllerCommand extends CommandBase { | ||
private ClimberSubsystem m_climberSubsystem; | ||
private XboxController m_controller; | ||
private OperatorBoard m_controller; | ||
|
||
public ClimberControllerCommand(ClimberSubsystem climberSubsystem, XboxController xboxController){ | ||
public ClimberControllerCommand(ClimberSubsystem climberSubsystem, OperatorBoard operatorBoard) { | ||
m_climberSubsystem = climberSubsystem; | ||
m_controller = xboxController; | ||
m_controller = operatorBoard; | ||
addRequirements(m_climberSubsystem); | ||
} | ||
|
||
@Override | ||
public void execute(){ | ||
m_climberSubsystem.climb(Utils.deadZones(-m_controller.getY(Hand.kRight), Constants.ClimberConstants.CLIMBER_CONTROL_SPEED_DEADZONE)); | ||
public void execute() { | ||
m_climberSubsystem.climb(Utils.deadZones(-m_controller.getLeftJoystickY(), | ||
Constants.ClimberConstants.CLIMBER_CONTROL_SPEED_DEADZONE)); | ||
} | ||
} |
Oops, something went wrong.