]> git.taranathan.com Git - FRC2026.git/commitdiff
COSF and limit
authorWesleyWong-972 <wesleycwong@gmail.com>
Mon, 23 Mar 2026 23:38:36 +0000 (16:38 -0700)
committerWesleyWong-972 <wesleycwong@gmail.com>
Mon, 23 Mar 2026 23:38:36 +0000 (16:38 -0700)
COSF set to 0.9
Lowered current limit on shooter

src/main/deploy/pathplanner/autos/Intake.auto [new file with mode: 0644]
src/main/deploy/pathplanner/autos/Kousha Double.auto [new file with mode: 0644]
src/main/deploy/pathplanner/paths/Kousha S1.path
src/main/java/frc/robot/RobotContainer.java
src/main/java/frc/robot/constants/swerve/DriveConstants.java
src/main/java/frc/robot/subsystems/shooter/ShooterConstants.java

diff --git a/src/main/deploy/pathplanner/autos/Intake.auto b/src/main/deploy/pathplanner/autos/Intake.auto
new file mode 100644 (file)
index 0000000..8b56f78
--- /dev/null
@@ -0,0 +1,19 @@
+{
+  "version": "2025.0",
+  "command": {
+    "type": "sequential",
+    "data": {
+      "commands": [
+        {
+          "type": "named",
+          "data": {
+            "name": "Extend Intake"
+          }
+        }
+      ]
+    }
+  },
+  "resetOdom": true,
+  "folder": null,
+  "choreoAuto": false
+}
\ No newline at end of file
diff --git a/src/main/deploy/pathplanner/autos/Kousha Double.auto b/src/main/deploy/pathplanner/autos/Kousha Double.auto
new file mode 100644 (file)
index 0000000..6cb4690
--- /dev/null
@@ -0,0 +1,31 @@
+{
+  "version": "2025.0",
+  "command": {
+    "type": "sequential",
+    "data": {
+      "commands": [
+        {
+          "type": "path",
+          "data": {
+            "pathName": "Kousha S1"
+          }
+        },
+        {
+          "type": "named",
+          "data": {
+            "name": "Start Spindexer"
+          }
+        },
+        {
+          "type": "path",
+          "data": {
+            "pathName": "Kousha S2"
+          }
+        }
+      ]
+    }
+  },
+  "resetOdom": true,
+  "folder": null,
+  "choreoAuto": false
+}
\ No newline at end of file
index e2b0a204e585d702eddca01de7981258b0d5fad4..d1297259f030529e26b20529251100664d0a7c9a 100644 (file)
@@ -3,13 +3,13 @@
   "waypoints": [
     {
       "anchor": {
-        "x": 4.45853476821192,
-        "y": 7.664966887417217
+        "x": 4.436754966887417,
+        "y": 7.6431870860927145
       },
       "prevControl": null,
       "nextControl": {
-        "x": 5.458534768211921,
-        "y": 7.664966887417217
+        "x": 5.436754966887418,
+        "y": 7.6431870860927145
       },
       "isLocked": false,
       "linkedName": null
       "rotationDegrees": 90.0
     }
   ],
-  "constraintZones": [],
+  "constraintZones": [
+    {
+      "name": "Constraints Zone",
+      "minWaypointRelativePos": 2.446143154968738,
+      "maxWaypointRelativePos": 3.6302988186240435,
+      "constraints": {
+        "maxVelocity": 3.0,
+        "maxAcceleration": 2.0,
+        "maxAngularVelocity": 200.0,
+        "maxAngularAcceleration": 300.0,
+        "nominalVoltage": 12.0,
+        "unlimited": false
+      }
+    }
+  ],
   "pointTowardsZones": [],
   "eventMarkers": [
     {
       "endWaypointRelativePos": null,
       "command": null
     },
+    {
+      "name": "Hood Down",
+      "waypointRelativePos": 0.005559416261295088,
+      "endWaypointRelativePos": null,
+      "command": null
+    },
+    {
+      "name": "Hood Down",
+      "waypointRelativePos": 0.01667824878387202,
+      "endWaypointRelativePos": null,
+      "command": null
+    },
     {
       "name": "Extend Intake",
       "waypointRelativePos": 0.41695621959694984,
index 7d351b56819824cc36f7f9454775091b8e1195ab..a914358f6f9f90231815b21327248cac277575e1 100644 (file)
@@ -138,7 +138,7 @@ public class RobotContainer {
         // Load the auto command
         try {
           String koushaAuto = "Kousha Double";
-          //String leftSideAuto = "Right Week V1";
+          //String leftSideAuto = "Left Week V1";
           // String leftSideAuto = "Right Week V1";
           // String leftSideAuto = "Right Week V1";
           // String rightSideAuto = "Right(2) - Under Trench";
index 5d69304cc442a9c9785767716677b41be0a93880..9cce375ef5e749d60e14b3c4a73dd1c8a4306916 100644 (file)
@@ -53,7 +53,7 @@ public class DriveConstants {
         // To do so, divide by the radius. The radius is the diagonal of the square chassis, diagonal = sqrt(2) * side_length.
         public static final double MAX_ANGULAR_SPEED = MAX_SPEED / ((TRACK_WIDTH / 2) * Math.sqrt(2));
     
-        public static final double COSF = 2.255;
+        public static final double COSF = 0.9;
         
         // The maximum acceleration of the robot, limited by friction
         public static final double MAX_LINEAR_ACCEL = COSF * Constants.GRAVITY_ACCELERATION;
index 66444266f64081602a28048ea4f601e3245b22d8..4dc7dffaf9e81628a01f37444c5dae63ad59fbf2 100644 (file)
@@ -5,5 +5,5 @@ import edu.wpi.first.math.util.Units;
 public class ShooterConstants {
     public static final double SHOOTER_VELOCITY = 1.0;
     public static final double SHOOTER_LAUNCH_DIAMETER = Units.inchesToMeters(4.0);
-    public static final double SHOOTER_CURRENT_LIMIT = 80;
+    public static final double SHOOTER_CURRENT_LIMIT = 40;
 }