-
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.
Gil - fixed conflicts in the middle east
- Loading branch information
Showing
38 changed files
with
634 additions
and
62 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
10 changes: 10 additions & 0 deletions
10
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/RobotState.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,10 @@ | ||
package org.firstinspires.ftc.teamcode; | ||
|
||
public enum RobotState { | ||
|
||
DRIVE, | ||
SCORE, | ||
CLIMB, | ||
INTAKE, | ||
|
||
} |
58 changes: 58 additions & 0 deletions
58
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/StateCommands.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,58 @@ | ||
package org.firstinspires.ftc.teamcode; | ||
|
||
import com.arcrobotics.ftclib.command.ParallelCommandGroup; | ||
import com.arcrobotics.ftclib.command.SequentialCommandGroup; | ||
|
||
import org.firstinspires.ftc.teamcode.subsystems.arm.ArmCommands; | ||
import org.firstinspires.ftc.teamcode.subsystems.arm.ArmState; | ||
import org.firstinspires.ftc.teamcode.subsystems.claw.ClawCommands; | ||
import org.firstinspires.ftc.teamcode.subsystems.elevator.ElevatorCommands; | ||
import org.firstinspires.ftc.teamcode.subsystems.elevator.ElevatorState; | ||
import org.firstinspires.ftc.teamcode.subsystems.wrist.WristCommands; | ||
import org.firstinspires.ftc.teamcode.subsystems.wrist.WristState; | ||
|
||
public class StateCommands { | ||
|
||
protected static SequentialCommandGroup scoreState() { | ||
return new SequentialCommandGroup( | ||
new ParallelCommandGroup( | ||
WristCommands.moveToState(WristState.SCORE), | ||
ArmCommands.goToState(ArmState.SCORE), | ||
ElevatorCommands.goToState(ElevatorState.SCORE) | ||
) | ||
); | ||
} | ||
|
||
protected static SequentialCommandGroup intakeState() { | ||
return new SequentialCommandGroup( | ||
new ParallelCommandGroup( | ||
WristCommands.moveToState(WristState.INTAKE), | ||
ArmCommands.goToState(ArmState.INTAKE), | ||
ElevatorCommands.goToState(ElevatorState.INTAKE) | ||
), | ||
ClawCommands.openBothFingers() | ||
); | ||
} | ||
|
||
protected static SequentialCommandGroup climbState() { | ||
return new SequentialCommandGroup( | ||
ClawCommands.closeBothFingers(), | ||
new ParallelCommandGroup( | ||
ArmCommands.goToState(ArmState.CLIMB), | ||
ElevatorCommands.goToState(ElevatorState.CLIMB) | ||
) | ||
); | ||
} | ||
|
||
protected static SequentialCommandGroup driveState() { | ||
return new SequentialCommandGroup( | ||
ClawCommands.closeBothFingers(), | ||
new ParallelCommandGroup( | ||
WristCommands.moveToState(WristState.IDLE), | ||
ArmCommands.goToState(ArmState.IDLE), | ||
ElevatorCommands.goToState(ElevatorState.IDLE) | ||
) | ||
); | ||
} | ||
|
||
} |
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
28 changes: 28 additions & 0 deletions
28
...main/java/org/firstinspires/ftc/teamcode/opmodes/robotstatetesters/RazRobotStateTest.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,28 @@ | ||
package org.firstinspires.ftc.teamcode.opmodes.robotstatetesters; | ||
|
||
|
||
import com.qualcomm.robotcore.eventloop.opmode.TeleOp; | ||
|
||
import org.firstinspires.ftc.teamcode.Bindings; | ||
import org.firstinspires.ftc.teamcode.Robot; | ||
import org.firstinspires.ftc.teamcode.opmodes.DefaultRaz; | ||
|
||
@TeleOp(name = "Raz Robot State Test") | ||
public class RazRobotStateTest extends DefaultRaz { | ||
|
||
@Override | ||
public void initialize() { | ||
|
||
} | ||
|
||
@Override | ||
public void execute() { | ||
telemetry.addData("Current Robot State: ", Robot.getInstance().getCurrentState()); | ||
} | ||
|
||
@Override | ||
public void configureBindings() { | ||
Bindings.razRobotStateTest(gamepad1); | ||
} | ||
|
||
} |
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
26 changes: 26 additions & 0 deletions
26
...rc/main/java/org/firstinspires/ftc/teamcode/opmodes/subsystemstesters/RazChassisTest.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,26 @@ | ||
package org.firstinspires.ftc.teamcode.opmodes.subsystemstesters; | ||
|
||
import com.qualcomm.robotcore.eventloop.opmode.TeleOp; | ||
|
||
import org.firstinspires.ftc.teamcode.Bindings; | ||
import org.firstinspires.ftc.teamcode.Robot; | ||
import org.firstinspires.ftc.teamcode.opmodes.DefaultRaz; | ||
|
||
@TeleOp(name = "Raz Drive Test") | ||
public class RazChassisTest extends DefaultRaz { | ||
|
||
@Override | ||
public void initialize() { | ||
} | ||
|
||
@Override | ||
public void execute() { | ||
Robot.getInstance().getChassis().telemetry(telemetry); | ||
} | ||
|
||
@Override | ||
public void configureBindings() { | ||
Bindings.razChassisTest(gamepad1); | ||
} | ||
|
||
} |
Oops, something went wrong.