Skip to content

Commit

Permalink
Rename sample to template
Browse files Browse the repository at this point in the history
  • Loading branch information
fruzyna committed Dec 11, 2023
1 parent 6341a55 commit 2cf9e41
Show file tree
Hide file tree
Showing 26 changed files with 51 additions and 51 deletions.
6 changes: 3 additions & 3 deletions 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.wildstang.sample.robot.Main"
def ROBOT_MAIN_CLASS = "org.wildstang.template.robot.Main"

// Define my targets (RoboRIO) and artifacts (deployable files)
// This is added by GradleRIO's backing project DeployUtils.
Expand Down Expand Up @@ -37,12 +37,12 @@ deploy {
}
}

// build docs in /docs folder, don't build for sample
// build docs in /docs folder, don't build for template
javadoc {
destinationDir = file("docs")
include 'org/wildstang/framework/**'
include 'org/wildstang/hardware/**'
include 'org/wildstang/sample/robot/**'
include 'org/wildstang/template/robot/**'
}

def deployArtifact = deploy.targets.roborio.artifacts.frcJava
Expand Down
6 changes: 3 additions & 3 deletions fork.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ if [[ $fork =~ ^20[0-9]{2}_ ]]; then
fi

# make new year20XX package
mv src/main/java/org/wildstang/sample "src/main/java/org/wildstang/year${year}"
mv src/main/java/org/wildstang/template "src/main/java/org/wildstang/year${year}"
# rename package in all files
grep -rlF "wildstang.sample" "src/main/java/org/wildstang/year${year}" | xargs sed -i "s/wildstang.sample/wildstang.year${year}/g"
grep -rlF "wildstang.template" "src/main/java/org/wildstang/year${year}" | xargs sed -i "s/wildstang.template/wildstang.year${year}/g"
# update package name for gradle ROBOT_MAIN_CLASS
sed -i "s/sample/year${year}/" build.gradle
sed -i "s/template/year${year}/" build.gradle

# automatically push year directory
git add --all
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package org.wildstang.sample.auto.Programs;
package org.wildstang.template.auto.Programs;

import org.wildstang.framework.auto.AutoProgram;
import org.wildstang.framework.auto.steps.PathHeadingStep;
import org.wildstang.framework.auto.steps.SetGyroStep;
import org.wildstang.framework.auto.steps.SwervePathFollowerStep;
import org.wildstang.sample.auto.Steps.StartOdometryStep;
import org.wildstang.sample.robot.WsSubsystems;
import org.wildstang.sample.subsystems.swerve.SwerveDrive;
import org.wildstang.template.auto.Steps.StartOdometryStep;
import org.wildstang.template.robot.WsSubsystems;
import org.wildstang.template.subsystems.swerve.SwerveDrive;

import com.pathplanner.lib.PathConstraints;
import com.pathplanner.lib.PathPlanner;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.wildstang.sample.auto.Steps;
package org.wildstang.template.auto.Steps;

import org.wildstang.framework.auto.AutoStep;
import org.wildstang.sample.robot.WsSubsystems;
import org.wildstang.sample.subsystems.swerve.SwerveDrive;
import org.wildstang.template.robot.WsSubsystems;
import org.wildstang.template.subsystems.swerve.SwerveDrive;

import edu.wpi.first.math.geometry.Pose2d;
import edu.wpi.first.math.geometry.Rotation2d;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package org.wildstang.sample.auto.Steps;
package org.wildstang.template.auto.Steps;

import org.wildstang.framework.auto.AutoStep;
import org.wildstang.sample.robot.WsSubsystems;
import org.wildstang.sample.subsystems.swerve.SwerveDrive;
import org.wildstang.sample.subsystems.targeting.WsVision;
import org.wildstang.template.robot.WsSubsystems;
import org.wildstang.template.subsystems.swerve.SwerveDrive;
import org.wildstang.template.subsystems.targeting.WsVision;

/**
* AutoStep used to enable/disable AprilTag alignment
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.wildstang.sample.robot;
package org.wildstang.template.robot;

/**
* CAN Constants are stored here.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.wildstang.sample.robot;
package org.wildstang.template.robot;

import edu.wpi.first.wpilibj.RobotBase;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.wildstang.sample.robot;
package org.wildstang.template.robot;

import org.wildstang.framework.core.Core;
import org.wildstang.framework.logger.Log;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.wildstang.sample.robot;
package org.wildstang.template.robot;

import org.wildstang.framework.auto.AutoProgram;
import org.wildstang.framework.core.AutoPrograms;
import org.wildstang.sample.auto.Programs.TestProgram;
import org.wildstang.template.auto.Programs.TestProgram;

/**
* All active AutoPrograms are enumerated here.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.wildstang.sample.robot;
package org.wildstang.template.robot;

import org.wildstang.framework.core.Core;
import org.wildstang.framework.core.Inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.wildstang.sample.robot;
package org.wildstang.template.robot;

import org.wildstang.framework.core.Core;
import org.wildstang.framework.core.Outputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.wildstang.sample.robot;
package org.wildstang.template.robot;

import org.wildstang.framework.auto.AutoProgram;
import org.wildstang.framework.core.Core;
import org.wildstang.framework.core.Subsystems;
import org.wildstang.framework.subsystems.Subsystem;
import org.wildstang.sample.subsystems.swerve.SwerveDrive;
import org.wildstang.sample.subsystems.targeting.WsVision;
import org.wildstang.template.subsystems.swerve.SwerveDrive;
import org.wildstang.template.subsystems.targeting.WsVision;

/**
* All subsystems are enumerated here.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package org.wildstang.sample.subsystems;
package org.wildstang.template.subsystems;

import org.wildstang.framework.core.Core;
import org.wildstang.framework.io.inputs.DigitalInput;
import org.wildstang.framework.io.inputs.AnalogInput;
import org.wildstang.framework.io.inputs.Input;
import org.wildstang.framework.subsystems.Subsystem;
import org.wildstang.hardware.roborio.inputs.WsJoystickAxis;
import org.wildstang.sample.robot.WsInputs;
import org.wildstang.template.robot.WsInputs;

import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.wildstang.sample.subsystems.drive;
package org.wildstang.template.subsystems.drive;

import com.kauailabs.navx.frc.AHRS;

Expand All @@ -8,8 +8,8 @@
import org.wildstang.hardware.roborio.inputs.WsAnalogInput;
import org.wildstang.hardware.roborio.inputs.WsDigitalInput;
import org.wildstang.hardware.roborio.outputs.WsSparkMax;
import org.wildstang.sample.robot.WsInputs;
import org.wildstang.sample.robot.WsOutputs;
import org.wildstang.template.robot.WsInputs;
import org.wildstang.template.robot.WsOutputs;

import edu.wpi.first.wpilibj.I2C;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.wildstang.sample.subsystems.drive;
package org.wildstang.template.subsystems.drive;

import org.wildstang.framework.pid.PIDConstants;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.wildstang.sample.subsystems.drive;
package org.wildstang.template.subsystems.drive;

/**
* A drivetrain command consisting of the left, right motor settings and whether
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.wildstang.sample.subsystems.drive;
package org.wildstang.template.subsystems.drive;

import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.wildstang.sample.subsystems.swerve;
package org.wildstang.template.subsystems.swerve;

public final class DriveConstants {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.wildstang.sample.subsystems.swerve;
package org.wildstang.template.subsystems.swerve;

import com.ctre.phoenix.sensors.Pigeon2;

Expand All @@ -7,13 +7,13 @@
import org.wildstang.framework.io.inputs.AnalogInput;
import org.wildstang.framework.io.inputs.DigitalInput;
import org.wildstang.framework.subsystems.swerve.SwerveDriveTemplate;
import org.wildstang.sample.robot.CANConstants;
import org.wildstang.sample.robot.WsInputs;
import org.wildstang.sample.robot.WsOutputs;
import org.wildstang.sample.robot.WsSubsystems;
import org.wildstang.sample.subsystems.targeting.WsVision;
import org.wildstang.sample.subsystems.targeting.LimeConsts;
import org.wildstang.hardware.roborio.outputs.WsSparkMax;
import org.wildstang.template.robot.CANConstants;
import org.wildstang.template.robot.WsInputs;
import org.wildstang.template.robot.WsOutputs;
import org.wildstang.template.robot.WsSubsystems;
import org.wildstang.template.subsystems.targeting.LimeConsts;
import org.wildstang.template.subsystems.targeting.WsVision;

import edu.wpi.first.math.geometry.Pose2d;
import edu.wpi.first.math.geometry.Rotation2d;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.wildstang.sample.subsystems.swerve;
package org.wildstang.template.subsystems.swerve;

import com.revrobotics.AbsoluteEncoder;
import com.revrobotics.SparkMaxAbsoluteEncoder.Type;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.wildstang.sample.subsystems.swerve;
package org.wildstang.template.subsystems.swerve;

public class SwerveSignal {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.wildstang.sample.subsystems.swerve;
package org.wildstang.template.subsystems.swerve;

public class WsSwerveHelper {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.wildstang.sample.subsystems.targeting;
package org.wildstang.template.subsystems.targeting;

public class LimeConsts {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//LimelightHelpers v1.2.1 (March 1, 2023)

package org.wildstang.sample.subsystems.targeting;
package org.wildstang.template.subsystems.targeting;

import edu.wpi.first.networktables.NetworkTable;
import edu.wpi.first.networktables.NetworkTableEntry;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.wildstang.sample.subsystems.targeting;
package org.wildstang.template.subsystems.targeting;

import edu.wpi.first.networktables.NetworkTable;
import edu.wpi.first.networktables.NetworkTableInstance;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package org.wildstang.sample.subsystems.targeting;
package org.wildstang.template.subsystems.targeting;

// ton of imports
import org.wildstang.framework.subsystems.Subsystem;
import org.wildstang.template.robot.WsInputs;
import org.wildstang.framework.core.Core;

import org.wildstang.framework.io.inputs.DigitalInput;
import org.wildstang.framework.io.inputs.Input;
import org.wildstang.sample.robot.WsInputs;

import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard;
import edu.wpi.first.wpilibj.shuffleboard.ShuffleboardTab;
Expand Down

0 comments on commit 2cf9e41

Please sign in to comment.