-
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.
Merge pull request #39 from 2729StormRobotics/revert-38-ButtonBindings
Revert "Merge Button Bindings into dev"
- Loading branch information
Showing
27 changed files
with
290 additions
and
989 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
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
33 changes: 33 additions & 0 deletions
33
Charge2023Test/src/main/java/frc/robot/commandgroups/ChargeArm.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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright (c) FIRST and other WPILib contributors. | ||
// Open Source Software; you can modify and/or share it under the terms of | ||
// the WPILib BSD license file in the root directory of this project. | ||
|
||
package frc.robot.commandgroups; | ||
|
||
import edu.wpi.first.wpilibj2.command.ParallelCommandGroup; | ||
import frc.robot.commands.ChangeArmAngle; | ||
import frc.robot.subsystems.Arm; | ||
import static frc.robot.Constants.ArmConstants.*; | ||
|
||
// NOTE: Consider using this command inline, rather than writing a subclass. For more | ||
// information, see: | ||
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html | ||
|
||
// This command group positions the arm to balance out the robot when driving onto the Charge Station. | ||
|
||
public class ChargeArm extends ParallelCommandGroup { | ||
|
||
private final Arm m_arm; | ||
|
||
/** Creates a new chargeArm. */ | ||
public ChargeArm(Arm arm) { | ||
|
||
m_arm = arm; | ||
|
||
// Add your commands in the addCommands() call, e.g. | ||
// addCommands(new FooCommand(), new BarCommand()); | ||
|
||
addCommands(new ChangeArmAngle(m_arm, kChargingAngle)); | ||
|
||
} | ||
} |
Oops, something went wrong.