From: eileha Date: Sat, 14 Feb 2026 18:51:15 +0000 (-0800) Subject: auto stuff X-Git-Url: https://git.taranathan.com/?a=commitdiff_plain;h=bda643ee972a5ceecbe666e8f66c830348f66b85;p=FRC2026.git auto stuff --- diff --git a/src/main/deploy/pathplanner/paths/Over the bump diagonal.path b/src/main/deploy/pathplanner/paths/Over the bump diagonal.path index 6138a9e..9f5a2c1 100644 --- a/src/main/deploy/pathplanner/paths/Over the bump diagonal.path +++ b/src/main/deploy/pathplanner/paths/Over the bump diagonal.path @@ -119,7 +119,14 @@ } ], "pointTowardsZones": [], - "eventMarkers": [], + "eventMarkers": [ + { + "name": "Auto shoot", + "waypointRelativePos": 0.0, + "endWaypointRelativePos": 1.115860517435307, + "command": null + } + ], "globalConstraints": { "maxVelocity": 3.0, "maxAcceleration": 3.0, diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 68afc6f..377285c 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -7,6 +7,7 @@ import org.json.simple.parser.ParseException; import org.littletonrobotics.junction.Logger; import com.pathplanner.lib.auto.AutoBuilder; +import com.pathplanner.lib.auto.NamedCommands; import com.pathplanner.lib.commands.PathPlannerAuto; import edu.wpi.first.math.geometry.Pose2d; @@ -20,6 +21,8 @@ import edu.wpi.first.wpilibj2.command.Command; import frc.robot.commands.DoNothing; import frc.robot.commands.drive_comm.DefaultDriveCommand; import frc.robot.commands.gpm.AimAtPose; +import frc.robot.commands.gpm.SimpleAutoShoot; +import frc.robot.commands.gpm.TurretAutoShoot; import frc.robot.commands.vision.ShutdownAllPis; import frc.robot.constants.AutoConstants; import frc.robot.constants.Constants; @@ -154,7 +157,7 @@ public class RobotContainer { } public void registerCommands() { - + NamedCommands.registerCommand("Auto shoot", new SimpleAutoShoot(turret, drive, shooter)); } public static BooleanSupplier getAllianceColorBooleanSupplier() {