This repository was archived by the owner on Nov 29, 2024. 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.
AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH mark 2 electric booglaoo
- Loading branch information
1 parent
d473ede
commit dde36fd
Showing
19 changed files
with
354 additions
and
118 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"waypoints": [ | ||
{ | ||
"anchorPoint": { | ||
"x": 1.946448286619825, | ||
"y": 1.6009641149096854 | ||
}, | ||
"prevControl": null, | ||
"nextControl": { | ||
"x": 2.3009474834926844, | ||
"y": -0.11435457963640693 | ||
}, | ||
"holonomicAngle": 0.0, | ||
"isReversal": false, | ||
"velOverride": null, | ||
"isLocked": false, | ||
"isStopPoint": false, | ||
"stopEvent": { | ||
"names": [], | ||
"executionBehavior": "parallel", | ||
"waitBehavior": "none", | ||
"waitTime": 0 | ||
} | ||
}, | ||
{ | ||
"anchorPoint": { | ||
"x": 6.56487514898107, | ||
"y": 0.9249526191360088 | ||
}, | ||
"prevControl": { | ||
"x": 5.688097145425064, | ||
"y": 1.0020320040640094 | ||
}, | ||
"nextControl": { | ||
"x": 7.441653152537076, | ||
"y": 0.8478732342080082 | ||
}, | ||
"holonomicAngle": 0.0, | ||
"isReversal": false, | ||
"velOverride": null, | ||
"isLocked": false, | ||
"isStopPoint": false, | ||
"stopEvent": { | ||
"names": [], | ||
"executionBehavior": "parallel", | ||
"waitBehavior": "none", | ||
"waitTime": 0 | ||
} | ||
}, | ||
{ | ||
"anchorPoint": { | ||
"x": 1.96, | ||
"y": 0.41 | ||
}, | ||
"prevControl": { | ||
"x": 1.9407301537679995, | ||
"y": 0.4774444618120008 | ||
}, | ||
"nextControl": null, | ||
"holonomicAngle": 0, | ||
"isReversal": false, | ||
"velOverride": null, | ||
"isLocked": false, | ||
"isStopPoint": false, | ||
"stopEvent": { | ||
"names": [], | ||
"executionBehavior": "parallel", | ||
"waitBehavior": "none", | ||
"waitTime": 0 | ||
} | ||
} | ||
], | ||
"markers": [] | ||
} |
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,49 @@ | ||
{ | ||
"waypoints": [ | ||
{ | ||
"anchorPoint": { | ||
"x": 1.9304771301850319, | ||
"y": 3.285508782556027 | ||
}, | ||
"prevControl": null, | ||
"nextControl": { | ||
"x": 2.9304771301850314, | ||
"y": 3.285508782556027 | ||
}, | ||
"holonomicAngle": 0, | ||
"isReversal": false, | ||
"velOverride": null, | ||
"isLocked": false, | ||
"isStopPoint": false, | ||
"stopEvent": { | ||
"names": [], | ||
"executionBehavior": "parallel", | ||
"waitBehavior": "none", | ||
"waitTime": 0 | ||
} | ||
}, | ||
{ | ||
"anchorPoint": { | ||
"x": 6.5663733039306305, | ||
"y": 3.384895557237619 | ||
}, | ||
"prevControl": { | ||
"x": 5.880245826112194, | ||
"y": 3.355099094620442 | ||
}, | ||
"nextControl": null, | ||
"holonomicAngle": 0, | ||
"isReversal": false, | ||
"velOverride": null, | ||
"isLocked": false, | ||
"isStopPoint": false, | ||
"stopEvent": { | ||
"names": [], | ||
"executionBehavior": "parallel", | ||
"waitBehavior": "none", | ||
"waitTime": 0 | ||
} | ||
} | ||
], | ||
"markers": [] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// 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.commands.Autos; | ||
|
||
import edu.wpi.first.math.trajectory.TrajectoryConfig; | ||
import edu.wpi.first.wpilibj2.command.InstantCommand; | ||
import edu.wpi.first.wpilibj2.command.ParallelCommandGroup; | ||
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup; | ||
import edu.wpi.first.wpilibj2.command.WaitCommand; | ||
import frc.robot.SharedConstants; | ||
import frc.robot.RobotMap.Crocodile; | ||
import frc.robot.commands.AutoIntakeCommand; | ||
import frc.robot.commands.ResetTelescope; | ||
import frc.robot.commands.RotatorToPosition; | ||
import frc.robot.commands.SwerveTrajectoryFollowCommand; | ||
import frc.robot.commands.TelescopeToPosition; | ||
import frc.robot.commands.Presets.HighPresetSequence; | ||
import frc.robot.commands.Presets.PickupPresetSequence; | ||
import frc.robot.commands.Presets.StowPresetSequence; | ||
import frc.robot.subsystems.CrocodileSubsystem; | ||
import frc.robot.subsystems.RotatorSubsystem; | ||
import frc.robot.subsystems.TelescopeSubsystem; | ||
import frc.robot.subsystems.CrocodileSubsystem.GamePiece; | ||
import frc.robot.subsystems.Swerve.DrivebaseSubsystem; | ||
|
||
public class DO_NOTHING extends SequentialCommandGroup { | ||
|
||
public DO_NOTHING(DrivebaseSubsystem driveBase, CrocodileSubsystem croc, RotatorSubsystem rotator, | ||
TelescopeSubsystem telescope) { | ||
addCommands( | ||
new InstantCommand() | ||
|
||
/* | ||
* start | ||
* rotate telescope to scoring position | ||
* extend telescope to top position | ||
* move wrist to 90 degrees | ||
* drop cone using chomper | ||
* move wrist back up to original position | ||
* retract arm | ||
* rotate arm to standby/pickup position | ||
* move forward to the cone | ||
* extend arm out | ||
* move wrist down to grabbing position | ||
* move forward some more while wrist is sucking up cone to pick it up | ||
* retract arm in | ||
* move back to starting position | ||
* more over to the left/right in line up with poles | ||
* flip arm over | ||
* extend arm to top position | ||
* move wrist to 90 degrees | ||
* drop cone using chomper | ||
* move wrist back up to original position | ||
* retract arm back in | ||
* rotate arm to standby/pickup position | ||
* end | ||
*/ | ||
|
||
); | ||
// grabs any requirements needed for the drivebase from other running commands. | ||
addRequirements(driveBase); | ||
} | ||
} |
68 changes: 68 additions & 0 deletions
68
src/main/java/frc/robot/commands/Autos/EXIT_COMMUNITY.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,68 @@ | ||
// 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.commands.Autos; | ||
|
||
import edu.wpi.first.math.trajectory.TrajectoryConfig; | ||
import edu.wpi.first.wpilibj2.command.InstantCommand; | ||
import edu.wpi.first.wpilibj2.command.ParallelCommandGroup; | ||
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup; | ||
import edu.wpi.first.wpilibj2.command.WaitCommand; | ||
import frc.robot.SharedConstants; | ||
import frc.robot.RobotMap.Crocodile; | ||
import frc.robot.commands.AutoIntakeCommand; | ||
import frc.robot.commands.ResetTelescope; | ||
import frc.robot.commands.RotatorToPosition; | ||
import frc.robot.commands.SwerveTrajectoryFollowCommand; | ||
import frc.robot.commands.TelescopeToPosition; | ||
import frc.robot.commands.Presets.HighPresetSequence; | ||
import frc.robot.commands.Presets.PickupPresetSequence; | ||
import frc.robot.commands.Presets.StowPresetSequence; | ||
import frc.robot.subsystems.CrocodileSubsystem; | ||
import frc.robot.subsystems.RotatorSubsystem; | ||
import frc.robot.subsystems.TelescopeSubsystem; | ||
import frc.robot.subsystems.CrocodileSubsystem.GamePiece; | ||
import frc.robot.subsystems.Swerve.DrivebaseSubsystem; | ||
|
||
public class EXIT_COMMUNITY extends SequentialCommandGroup { | ||
private final TrajectoryConfig defaultConfig; | ||
|
||
public EXIT_COMMUNITY(DrivebaseSubsystem driveBase, CrocodileSubsystem croc, RotatorSubsystem rotator, | ||
TelescopeSubsystem telescope) { | ||
this.defaultConfig = new TrajectoryConfig(SharedConstants.AutoConstants.k_MAX_SPEED_MPS, | ||
SharedConstants.AutoConstants.k_MAX_ACCEL_MPS_SQUARED); | ||
addCommands( | ||
new SwerveTrajectoryFollowCommand(driveBase, "moveOut", defaultConfig, true) | ||
|
||
/* | ||
* start | ||
* rotate telescope to scoring position | ||
* extend telescope to top position | ||
* move wrist to 90 degrees | ||
* drop cone using chomper | ||
* move wrist back up to original position | ||
* retract arm | ||
* rotate arm to standby/pickup position | ||
* move forward to the cone | ||
* extend arm out | ||
* move wrist down to grabbing position | ||
* move forward some more while wrist is sucking up cone to pick it up | ||
* retract arm in | ||
* move back to starting position | ||
* more over to the left/right in line up with poles | ||
* flip arm over | ||
* extend arm to top position | ||
* move wrist to 90 degrees | ||
* drop cone using chomper | ||
* move wrist back up to original position | ||
* retract arm back in | ||
* rotate arm to standby/pickup position | ||
* end | ||
*/ | ||
|
||
); | ||
// grabs any requirements needed for the drivebase from other running commands. | ||
addRequirements(driveBase); | ||
} | ||
} |
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
Oops, something went wrong.