Skip to content

Commit

Permalink
remove copyright comments in many files
Browse files Browse the repository at this point in the history
  • Loading branch information
AvidCoder27 committed Aug 7, 2024
1 parent 77de254 commit 3f3b978
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 179 deletions.
21 changes: 0 additions & 21 deletions src/main/java/frc/team5115/Constants.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
// Copyright 2021-2024 FRC 6328
// http://github.com/Mechanical-Advantage
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// version 3 as published by the Free Software Foundation or
// available in the root directory of this project.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

package frc.team5115;

import edu.wpi.first.math.geometry.Rotation2d;
Expand All @@ -20,14 +7,6 @@
import edu.wpi.first.math.util.Units;
import edu.wpi.first.wpilibj.RobotBase;

/**
* The Constants class provides a convenient place for teams to hold robot-wide numerical or boolean
* constants. This class should not be used for any other purpose. All constants should be declared
* globally (i.e. public static). Do not put anything functional in this class.
*
* <p>It is advised to statically import this class (or one of its inner classes) wherever the
* constants are needed, to reduce verbosity.
*/
public final class Constants {
private static final boolean isReplay = false;
public static final Mode currentMode =
Expand Down
13 changes: 0 additions & 13 deletions src/main/java/frc/team5115/Main.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
// Copyright 2021-2024 FRC 6328
// http://github.com/Mechanical-Advantage
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// version 3 as published by the Free Software Foundation or
// available in the root directory of this project.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

package frc.team5115;

import edu.wpi.first.wpilibj.RobotBase;
Expand Down
13 changes: 0 additions & 13 deletions src/main/java/frc/team5115/Robot.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
// Copyright 2021-2024 FRC 6328
// http://github.com/Mechanical-Advantage
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// version 3 as published by the Free Software Foundation or
// available in the root directory of this project.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

package frc.team5115;

import edu.wpi.first.wpilibj2.command.Command;
Expand Down
36 changes: 7 additions & 29 deletions src/main/java/frc/team5115/RobotContainer.java
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
// Copyright 2021-2024 FRC 6328
// http://github.com/Mechanical-Advantage
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// version 3 as published by the Free Software Foundation or
// available in the root directory of this project.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

package frc.team5115;

import com.pathplanner.lib.auto.AutoBuilder;
import edu.wpi.first.math.geometry.Pose2d;
import edu.wpi.first.math.geometry.Rotation2d;
import edu.wpi.first.wpilibj.GenericHID;
import edu.wpi.first.wpilibj.XboxController;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.Command.InterruptionBehavior;
import edu.wpi.first.wpilibj2.command.Commands;
Expand Down Expand Up @@ -142,33 +127,26 @@ public RobotContainer() {
// drivetrain.sysIdQuasistatic(SysIdRoutine.Direction.kReverse));
// autoChooser.addOption(
// "Drive SysId (Dynamic Forward)",
// drivetrain.sysIdDynamic(SysIdRoutine.Direction.kForward));
// drivetrain.sysIdDynamic(SysIdRoutine.Direction.kForward));
// autoChooser.addOption(
// "Drive SysId (Dynamic Reverse)",
// drivetrain.sysIdDynamic(SysIdRoutine.Direction.kReverse));

// drivetrain.sysIdDynamic(SysIdRoutine.Direction.kReverse));
// autoChooser.addOption(
// "Shooter Aux SysId (Quasistatic Forward)",
// "Shooter SysId (Quasistatic Forward)",
// shooter.sysIdQuasistatic(SysIdRoutine.Direction.kForward));
// autoChooser.addOption(
// "Shooter Aux SysId (Quasistatic Reverse)",
// "Shooter SysId (Quasistatic Reverse)",
// shooter.sysIdQuasistatic(SysIdRoutine.Direction.kReverse));
// autoChooser.addOption(
// "Shooter Aux SysId (Dynamic Forward)",
// "Shooter SysId (Dynamic Forward)",
// shooter.sysIdDynamic(SysIdRoutine.Direction.kForward));
// autoChooser.addOption(
// "Shooter Aux SysId (Dynamic Reverse)",
// "Shooter SysId (Dynamic Reverse)",
// shooter.sysIdDynamic(SysIdRoutine.Direction.kReverse));
// Configure the button bindings

configureButtonBindings();
}

/**
* Use this method to define your button->command mappings. Buttons can be created by
* instantiating a {@link GenericHID} or one of its subclasses ({@link
* edu.wpi.first.wpilibj.Joystick} or {@link XboxController}), and then passing it to a {@link
* edu.wpi.first.wpilibj2.command.button.JoystickButton}.
*/
private void configureButtonBindings() {
drivetrain.setDefaultCommand(
DriveCommands.joystickDrive(
Expand Down
13 changes: 0 additions & 13 deletions src/main/java/frc/team5115/commands/DriveCommands.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
// Copyright 2021-2024 FRC 6328
// http://github.com/Mechanical-Advantage
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// version 3 as published by the Free Software Foundation or
// available in the root directory of this project.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

package frc.team5115.commands;

import edu.wpi.first.math.MathUtil;
Expand Down
13 changes: 0 additions & 13 deletions src/main/java/frc/team5115/subsystems/drive/Drivetrain.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
// Copyright 2021-2024 FRC 6328
// http://github.com/Mechanical-Advantage
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// version 3 as published by the Free Software Foundation or
// available in the root directory of this project.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

package frc.team5115.subsystems.drive;

import static edu.wpi.first.units.Units.*;
Expand Down
13 changes: 0 additions & 13 deletions src/main/java/frc/team5115/subsystems/drive/GyroIO.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
// Copyright 2021-2024 FRC 6328
// http://github.com/Mechanical-Advantage
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// version 3 as published by the Free Software Foundation or
// available in the root directory of this project.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

package frc.team5115.subsystems.drive;

import edu.wpi.first.math.geometry.Rotation2d;
Expand Down
13 changes: 0 additions & 13 deletions src/main/java/frc/team5115/subsystems/drive/Module.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
// Copyright 2021-2024 FRC 6328
// http://github.com/Mechanical-Advantage
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// version 3 as published by the Free Software Foundation or
// available in the root directory of this project.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

package frc.team5115.subsystems.drive;

import edu.wpi.first.math.controller.PIDController;
Expand Down
13 changes: 0 additions & 13 deletions src/main/java/frc/team5115/subsystems/drive/ModuleIO.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
// Copyright 2021-2024 FRC 6328
// http://github.com/Mechanical-Advantage
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// version 3 as published by the Free Software Foundation or
// available in the root directory of this project.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

package frc.team5115.subsystems.drive;

import edu.wpi.first.math.geometry.Rotation2d;
Expand Down
13 changes: 0 additions & 13 deletions src/main/java/frc/team5115/subsystems/drive/ModuleIOSim.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
// Copyright 2021-2024 FRC 6328
// http://github.com/Mechanical-Advantage
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// version 3 as published by the Free Software Foundation or
// available in the root directory of this project.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

package frc.team5115.subsystems.drive;

import edu.wpi.first.math.MathUtil;
Expand Down
25 changes: 0 additions & 25 deletions src/main/java/frc/team5115/subsystems/drive/ModuleIOSparkMax.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
// Copyright 2021-2024 FRC 6328
// http://github.com/Mechanical-Advantage
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// version 3 as published by the Free Software Foundation or
// available in the root directory of this project.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

package frc.team5115.subsystems.drive;

import com.revrobotics.AbsoluteEncoder;
Expand All @@ -23,18 +10,6 @@
import edu.wpi.first.math.util.Units;
import frc.team5115.Constants.SwerveConstants;

/**
* Module IO implementation for SparkMax drive motor controller, SparkMax turn motor controller (NEO
* or NEO 550), and analog absolute encoder connected to the RIO
*
* <p>NOTE: This implementation should be used as a starting point and adapted to different hardware
* configurations (e.g. If using a CANcoder, copy from "ModuleIOTalonFX")
*
* <p>To calibrate the absolute encoder offsets, point the modules straight (such that forward
* motion on the drive motor will propel the robot forward) and copy the reported values from the
* absolute encoders using AdvantageScope. These values are logged under
* "/Drive/ModuleX/TurnAbsolutePositionRad"
*/
public class ModuleIOSparkMax implements ModuleIO {
private final CANSparkMax driveSparkMax;
private final CANSparkMax turnSparkMax;
Expand Down

0 comments on commit 3f3b978

Please sign in to comment.