Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
refactor: copy delphi to robot2023
Browse files Browse the repository at this point in the history
  • Loading branch information
rutmanz committed Jan 10, 2023
1 parent 4d714eb commit aabd76d
Show file tree
Hide file tree
Showing 16 changed files with 29 additions and 29 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Robot Template
# Robot 2023

After creating a copy of this repository,
FRC Team 1540's code for the 2023 season: Charged Up
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11

def ROBOT_MAIN_CLASS = "org.team1540.delphi.Main"
def ROBOT_MAIN_CLASS = "org.team1540.robot2023.Main"

// Define my targets (RoboRIO) and artifacts (deployable files)
// This is added by GradleRIO's backing project DeployUtils.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// 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 org.team1540.delphi;
package org.team1540.robot2023;

public final class Constants {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// 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 org.team1540.delphi;
package org.team1540.robot2023;

import edu.wpi.first.wpilibj.RobotBase;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.team1540.delphi;
package org.team1540.robot2023;

import edu.wpi.first.math.controller.RamseteController;
import edu.wpi.first.math.controller.SimpleMotorFeedforward;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// 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 org.team1540.delphi;
package org.team1540.robot2023;

import edu.wpi.first.wpilibj.TimedRobot;
import edu.wpi.first.wpilibj.livewindow.LiveWindow;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package org.team1540.delphi;
package org.team1540.robot2023;

import edu.wpi.first.wpilibj.DriverStation;
import edu.wpi.first.wpilibj.XboxController;
import edu.wpi.first.wpilibj2.command.CommandBase;
import edu.wpi.first.wpilibj2.command.button.Trigger;
import org.team1540.delphi.commands.drivetrain.Drivetrain;
import org.team1540.delphi.commands.drivetrain.PathPlannerDriveCommand;
import org.team1540.delphi.commands.drivetrain.SwerveDriveCommand;
import org.team1540.robot2023.commands.drivetrain.Drivetrain;
import org.team1540.robot2023.commands.drivetrain.PathPlannerDriveCommand;
import org.team1540.robot2023.commands.drivetrain.SwerveDriveCommand;

public class RobotContainer {
// Hardware
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.team1540.delphi.commands.drivetrain;
package org.team1540.robot2023.commands.drivetrain;

import com.swervedrivespecialties.swervelib.Mk4ModuleConfiguration;
import com.swervedrivespecialties.swervelib.Mk4iSwerveModuleHelper;
Expand All @@ -8,12 +8,12 @@
import edu.wpi.first.wpilibj.shuffleboard.BuiltInLayouts;
import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard;
import edu.wpi.first.wpilibj.shuffleboard.ShuffleboardTab;
import org.team1540.delphi.utils.swerve.ModuleOffset;
import org.team1540.delphi.utils.swerve.ModulePosition;
import org.team1540.delphi.utils.swerve.SwerveCANDevice;
import org.team1540.robot2023.utils.swerve.ModuleOffset;
import org.team1540.robot2023.utils.swerve.ModulePosition;
import org.team1540.robot2023.utils.swerve.SwerveCANDevice;

import static org.team1540.delphi.Constants.DRIVETRAIN_TRACKWIDTH_METERS;
import static org.team1540.delphi.Constants.DRIVETRAIN_WHEELBASE_METERS;
import static org.team1540.robot2023.Constants.DRIVETRAIN_TRACKWIDTH_METERS;
import static org.team1540.robot2023.Constants.DRIVETRAIN_WHEELBASE_METERS;

public class ChickenSwerveModule {
private final SwerveModule module;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package org.team1540.delphi.commands.drivetrain;
package org.team1540.robot2023.commands.drivetrain;

import com.pathplanner.lib.PathPlannerTrajectory;
import com.pathplanner.lib.commands.PPSwerveControllerCommand;
import edu.wpi.first.math.controller.PIDController;
import edu.wpi.first.math.geometry.Pose2d;
import edu.wpi.first.math.geometry.Rotation2d;
import edu.wpi.first.wpilibj2.command.*;
import org.team1540.delphi.utils.swerve.ModuleOffset;
import org.team1540.delphi.utils.swerve.ModulePosition;
import org.team1540.robot2023.utils.swerve.ModuleOffset;
import org.team1540.robot2023.utils.swerve.ModulePosition;

import com.kauailabs.navx.frc.AHRS;

Expand All @@ -18,8 +18,8 @@
import edu.wpi.first.math.kinematics.SwerveModuleState;
import edu.wpi.first.wpilibj.SPI;

import static org.team1540.delphi.Constants.DRIVETRAIN_TRACKWIDTH_METERS;
import static org.team1540.delphi.Constants.DRIVETRAIN_WHEELBASE_METERS;
import static org.team1540.robot2023.Constants.DRIVETRAIN_TRACKWIDTH_METERS;
import static org.team1540.robot2023.Constants.DRIVETRAIN_WHEELBASE_METERS;

public class Drivetrain extends SubsystemBase {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.team1540.delphi.commands.drivetrain;
package org.team1540.robot2023.commands.drivetrain;

import com.pathplanner.lib.PathConstraints;
import com.pathplanner.lib.PathPlanner;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.team1540.delphi.commands.drivetrain;
package org.team1540.robot2023.commands.drivetrain;

import edu.wpi.first.wpilibj.XboxController;
import edu.wpi.first.wpilibj2.command.CommandBase;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.team1540.delphi.utils;
package org.team1540.robot2023.utils;

public class MathUtils {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.team1540.delphi.utils.swerve;
package org.team1540.robot2023.utils.swerve;

import com.ctre.phoenix.sensors.AbsoluteSensorRange;
import com.ctre.phoenix.sensors.CANCoder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.team1540.delphi.utils.swerve;
package org.team1540.robot2023.utils.swerve;


/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.team1540.delphi.utils.swerve;
package org.team1540.robot2023.utils.swerve;

/**
* Represents a corner of the robot. Used for calculating encoder offsets
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.team1540.delphi.utils.swerve;
package org.team1540.robot2023.utils.swerve;

public class SwerveCANDevice {

Expand Down

0 comments on commit aabd76d

Please sign in to comment.