Skip to content

Commit

Permalink
fix yagsl config files
Browse files Browse the repository at this point in the history
  • Loading branch information
WispySparks committed Jan 15, 2025
1 parent 7902b09 commit d59674a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 65 deletions.
54 changes: 0 additions & 54 deletions src/main/deploy/pathplanner/paths/New Path.path

This file was deleted.

2 changes: 1 addition & 1 deletion src/main/deploy/swerve/controllerproperties.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"angleJoystickRadiusDeadband": 0.5,
"angleJoystickRadiusDeadband": 0,
"heading": {
"p": 0,
"i": 0,
Expand Down
14 changes: 11 additions & 3 deletions src/main/deploy/swerve/modules/physicalproperties.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
{
"optimalVoltage": 12,
"robotMass": 115,
"wheelGripCoefficientOfFriction": 1.19,
"currentLimit": {
"drive": 40,
"angle": 20
},
"conversionFactor": {
"angle": 0,
"drive": 0
"conversionFactors": {
"angle": {
"gearRatio": 41.25,
"factor": 0
},
"drive": {
"diameter": 3,
"gearRatio": 4.4,
"factor": 0
}
},
"rampRate": {
"drive": 0.25,
Expand Down
7 changes: 0 additions & 7 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
package frc.robot;

import edu.wpi.first.math.MathUtil;
import edu.wpi.first.math.geometry.Pose2d;
import edu.wpi.first.wpilibj.DriverStation;
import edu.wpi.first.wpilibj.TimedRobot;
import edu.wpi.first.wpilibj.smartdashboard.Field2d;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.CommandScheduler;
import edu.wpi.first.wpilibj2.command.button.CommandXboxController;
Expand All @@ -20,7 +18,6 @@ public class Robot extends TimedRobot {

private final Swerve swerve = new Swerve();
private final CommandXboxController xboxController = new CommandXboxController(ControllerK.xboxPort);
private Field2d reefTest = new Field2d();

public Robot() {
DriverStation.silenceJoystickConnectionWarning(true);
Expand All @@ -32,10 +29,6 @@ public Robot() {
false
);
swerve.setDefaultCommand(driveFieldOrientedAngularVelocity);

Pose2d robotPose = swerve.getPose();
reefTest.getObject("Robot Pose").setPose(robotPose);

}

private void configureBindings() {
Expand Down

0 comments on commit d59674a

Please sign in to comment.