From 7abbef936b84f13ebea4baad6db9eab173fb60b8 Mon Sep 17 00:00:00 2001 From: notaroboticsenthusiast <91231142+notaroboticsenthusiast@users.noreply.github.com> Date: Wed, 1 Nov 2023 18:34:09 -0500 Subject: [PATCH] license header now includes Asimov's Laws --Gabe --- build.gradle | 3 ++- src/main/java/frc/robot/ArbitraryValues.java | 7 +++++++ src/main/java/frc/robot/Constants.java | 7 +++++++ src/main/java/frc/robot/Main.java | 7 +++++++ src/main/java/frc/robot/Robot.java | 7 +++++++ src/main/java/frc/robot/RobotContainer.java | 7 +++++++ src/main/java/frc/robot/TCA9548A.java | 7 +++++++ src/main/java/frc/robot/commands/Autos.java | 7 +++++++ src/main/java/frc/robot/commands/Balance.java | 7 +++++++ src/main/java/frc/robot/commands/DriveArcade.java | 7 +++++++ src/main/java/frc/robot/commands/DriveForwards.java | 7 +++++++ src/main/java/frc/robot/commands/DriveReverse.java | 7 +++++++ src/main/java/frc/robot/commands/DriveTank.java | 7 +++++++ src/main/java/frc/robot/commands/ExtendArm.java | 7 +++++++ src/main/java/frc/robot/commands/InCubeOutCone.java | 7 +++++++ src/main/java/frc/robot/commands/ManualArm.java | 7 +++++++ src/main/java/frc/robot/commands/MoveBaseDegrees.java | 7 +++++++ src/main/java/frc/robot/commands/MoveShoulderDegrees.java | 7 +++++++ src/main/java/frc/robot/commands/OutCubeInCone.java | 7 +++++++ src/main/java/frc/robot/commands/ResetDrivePose.java | 7 +++++++ src/main/java/frc/robot/commands/RetractArm.java | 7 +++++++ .../java/frc/robot/commands/StartLeavingCommunity.java | 7 +++++++ src/main/java/frc/robot/commands/StopLeavingCommunity.java | 7 +++++++ src/main/java/frc/robot/commands/TestDrivePID.java | 7 +++++++ src/main/java/frc/robot/commands/TrackTrajectory.java | 7 +++++++ .../java/frc/robot/commands/homingRoutine/HomeBase.java | 7 +++++++ .../frc/robot/commands/homingRoutine/HomeShoulder.java | 7 +++++++ .../java/frc/robot/commands/moveToPose/MoveBaseToPose.java | 7 +++++++ .../frc/robot/commands/moveToPose/MoveExtenderToPose.java | 7 +++++++ .../frc/robot/commands/moveToPose/MoveShoulderToPose.java | 7 +++++++ .../java/frc/robot/commands/moveToPose/MoveToPose.java | 7 +++++++ src/main/java/frc/robot/positioning/ArmKinematics.java | 7 +++++++ src/main/java/frc/robot/positioning/Path.java | 7 +++++++ src/main/java/frc/robot/positioning/Pose.java | 7 +++++++ .../java/frc/robot/positioning/Team937TrajectoryUtils.java | 7 +++++++ src/main/java/frc/robot/subsystems/Camera.java | 7 +++++++ src/main/java/frc/robot/subsystems/Drive.java | 7 +++++++ src/main/java/frc/robot/subsystems/I2CManager.java | 7 +++++++ src/main/java/frc/robot/subsystems/Limelight.java | 7 +++++++ src/main/java/frc/robot/subsystems/LimelightManager.java | 7 +++++++ src/main/java/frc/robot/subsystems/arm/ArmBase.java | 7 +++++++ src/main/java/frc/robot/subsystems/arm/ArmExtender.java | 7 +++++++ src/main/java/frc/robot/subsystems/arm/ArmIntake.java | 7 +++++++ src/main/java/frc/robot/subsystems/arm/ArmShoulder.java | 7 +++++++ src/main/java/frc/robot/subsystems/arm/CompilationArm.java | 7 +++++++ src/main/java/frc/robot/subsystems/yourMom.java | 7 +++++++ src/test/java/BaseTests.java | 7 +++++++ src/test/java/TestTesting.java | 7 +++++++ 48 files changed, 331 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index f739899..2aa239f 100644 --- a/build.gradle +++ b/build.gradle @@ -107,7 +107,8 @@ format 'misc', { } java { - licenseHeader '// Copyright (c) FIRST and other WPILib contributors.\n// Open Source Software; you can modify and/or share it under the terms of\n// the WPILib BSD license file in the root directory of this project.' + licenseHeader '// Copyright (c) FIRST and other WPILib contributors.\n// Open Source Software; you can modify and/or share it under the terms of\n// the WPILib BSD license file in the root directory of this project.\n\n/*\n * Asmiov\'s Laws:\n * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm.\n * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law.\n * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law.\n */' + removeUnusedImports() formatAnnotations() googleJavaFormat().reflowLongStrings() diff --git a/src/main/java/frc/robot/ArbitraryValues.java b/src/main/java/frc/robot/ArbitraryValues.java index 3929e38..b4a26e7 100644 --- a/src/main/java/frc/robot/ArbitraryValues.java +++ b/src/main/java/frc/robot/ArbitraryValues.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot; import edu.wpi.first.wpilibj.RobotBase; diff --git a/src/main/java/frc/robot/Constants.java b/src/main/java/frc/robot/Constants.java index d3a5b0d..4941ab9 100644 --- a/src/main/java/frc/robot/Constants.java +++ b/src/main/java/frc/robot/Constants.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot; import edu.wpi.first.math.geometry.Pose2d; diff --git a/src/main/java/frc/robot/Main.java b/src/main/java/frc/robot/Main.java index ba8d5e2..05af1e8 100644 --- a/src/main/java/frc/robot/Main.java +++ b/src/main/java/frc/robot/Main.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot; import edu.wpi.first.wpilibj.RobotBase; diff --git a/src/main/java/frc/robot/Robot.java b/src/main/java/frc/robot/Robot.java index 5dfe048..b811b47 100644 --- a/src/main/java/frc/robot/Robot.java +++ b/src/main/java/frc/robot/Robot.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot; import edu.wpi.first.wpilibj.DriverStation; diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 7b54ca2..dd4171d 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot; import edu.wpi.first.wpilibj.smartdashboard.SendableChooser; diff --git a/src/main/java/frc/robot/TCA9548A.java b/src/main/java/frc/robot/TCA9548A.java index 1492d69..b6ac4d3 100644 --- a/src/main/java/frc/robot/TCA9548A.java +++ b/src/main/java/frc/robot/TCA9548A.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot; import edu.wpi.first.wpilibj.I2C; diff --git a/src/main/java/frc/robot/commands/Autos.java b/src/main/java/frc/robot/commands/Autos.java index 80a8af4..66710c8 100644 --- a/src/main/java/frc/robot/commands/Autos.java +++ b/src/main/java/frc/robot/commands/Autos.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.commands; import edu.wpi.first.wpilibj2.command.CommandBase; diff --git a/src/main/java/frc/robot/commands/Balance.java b/src/main/java/frc/robot/commands/Balance.java index 7000d49..0bd10e9 100644 --- a/src/main/java/frc/robot/commands/Balance.java +++ b/src/main/java/frc/robot/commands/Balance.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.commands; import edu.wpi.first.wpilibj2.command.CommandBase; diff --git a/src/main/java/frc/robot/commands/DriveArcade.java b/src/main/java/frc/robot/commands/DriveArcade.java index c4d8121..c09d0eb 100644 --- a/src/main/java/frc/robot/commands/DriveArcade.java +++ b/src/main/java/frc/robot/commands/DriveArcade.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.commands; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; diff --git a/src/main/java/frc/robot/commands/DriveForwards.java b/src/main/java/frc/robot/commands/DriveForwards.java index 1359f58..38be71f 100644 --- a/src/main/java/frc/robot/commands/DriveForwards.java +++ b/src/main/java/frc/robot/commands/DriveForwards.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.commands; import edu.wpi.first.wpilibj2.command.CommandBase; diff --git a/src/main/java/frc/robot/commands/DriveReverse.java b/src/main/java/frc/robot/commands/DriveReverse.java index 64f4b4b..d464f4d 100644 --- a/src/main/java/frc/robot/commands/DriveReverse.java +++ b/src/main/java/frc/robot/commands/DriveReverse.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.commands; import edu.wpi.first.wpilibj2.command.CommandBase; diff --git a/src/main/java/frc/robot/commands/DriveTank.java b/src/main/java/frc/robot/commands/DriveTank.java index a145b6c..a76b9d1 100644 --- a/src/main/java/frc/robot/commands/DriveTank.java +++ b/src/main/java/frc/robot/commands/DriveTank.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.commands; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; diff --git a/src/main/java/frc/robot/commands/ExtendArm.java b/src/main/java/frc/robot/commands/ExtendArm.java index 2cbe988..9b5f57e 100644 --- a/src/main/java/frc/robot/commands/ExtendArm.java +++ b/src/main/java/frc/robot/commands/ExtendArm.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.commands; import edu.wpi.first.wpilibj2.command.CommandBase; diff --git a/src/main/java/frc/robot/commands/InCubeOutCone.java b/src/main/java/frc/robot/commands/InCubeOutCone.java index 7b9bbe6..41b1371 100644 --- a/src/main/java/frc/robot/commands/InCubeOutCone.java +++ b/src/main/java/frc/robot/commands/InCubeOutCone.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.commands; import edu.wpi.first.wpilibj2.command.CommandBase; diff --git a/src/main/java/frc/robot/commands/ManualArm.java b/src/main/java/frc/robot/commands/ManualArm.java index 8b9e0b6..f3ab096 100644 --- a/src/main/java/frc/robot/commands/ManualArm.java +++ b/src/main/java/frc/robot/commands/ManualArm.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.commands; import edu.wpi.first.wpilibj2.command.CommandBase; diff --git a/src/main/java/frc/robot/commands/MoveBaseDegrees.java b/src/main/java/frc/robot/commands/MoveBaseDegrees.java index 2481efd..83f71db 100644 --- a/src/main/java/frc/robot/commands/MoveBaseDegrees.java +++ b/src/main/java/frc/robot/commands/MoveBaseDegrees.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.commands; import edu.wpi.first.wpilibj2.command.CommandBase; diff --git a/src/main/java/frc/robot/commands/MoveShoulderDegrees.java b/src/main/java/frc/robot/commands/MoveShoulderDegrees.java index 6d6af38..65f8412 100644 --- a/src/main/java/frc/robot/commands/MoveShoulderDegrees.java +++ b/src/main/java/frc/robot/commands/MoveShoulderDegrees.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.commands; import edu.wpi.first.wpilibj2.command.CommandBase; diff --git a/src/main/java/frc/robot/commands/OutCubeInCone.java b/src/main/java/frc/robot/commands/OutCubeInCone.java index 507a88c..8103d3e 100644 --- a/src/main/java/frc/robot/commands/OutCubeInCone.java +++ b/src/main/java/frc/robot/commands/OutCubeInCone.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.commands; import edu.wpi.first.wpilibj2.command.CommandBase; diff --git a/src/main/java/frc/robot/commands/ResetDrivePose.java b/src/main/java/frc/robot/commands/ResetDrivePose.java index f9dd7fd..537f7c6 100644 --- a/src/main/java/frc/robot/commands/ResetDrivePose.java +++ b/src/main/java/frc/robot/commands/ResetDrivePose.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.commands; import edu.wpi.first.wpilibj2.command.CommandBase; diff --git a/src/main/java/frc/robot/commands/RetractArm.java b/src/main/java/frc/robot/commands/RetractArm.java index 9902513..c56186b 100644 --- a/src/main/java/frc/robot/commands/RetractArm.java +++ b/src/main/java/frc/robot/commands/RetractArm.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.commands; import edu.wpi.first.wpilibj2.command.CommandBase; diff --git a/src/main/java/frc/robot/commands/StartLeavingCommunity.java b/src/main/java/frc/robot/commands/StartLeavingCommunity.java index 7c1d60f..78e27f8 100644 --- a/src/main/java/frc/robot/commands/StartLeavingCommunity.java +++ b/src/main/java/frc/robot/commands/StartLeavingCommunity.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.commands; import edu.wpi.first.wpilibj2.command.CommandBase; diff --git a/src/main/java/frc/robot/commands/StopLeavingCommunity.java b/src/main/java/frc/robot/commands/StopLeavingCommunity.java index eeadcf9..f286499 100644 --- a/src/main/java/frc/robot/commands/StopLeavingCommunity.java +++ b/src/main/java/frc/robot/commands/StopLeavingCommunity.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.commands; import edu.wpi.first.wpilibj2.command.CommandBase; diff --git a/src/main/java/frc/robot/commands/TestDrivePID.java b/src/main/java/frc/robot/commands/TestDrivePID.java index 8b57a31..e8c8915 100644 --- a/src/main/java/frc/robot/commands/TestDrivePID.java +++ b/src/main/java/frc/robot/commands/TestDrivePID.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.commands; import edu.wpi.first.wpilibj2.command.CommandBase; diff --git a/src/main/java/frc/robot/commands/TrackTrajectory.java b/src/main/java/frc/robot/commands/TrackTrajectory.java index 597a602..16a4de7 100644 --- a/src/main/java/frc/robot/commands/TrackTrajectory.java +++ b/src/main/java/frc/robot/commands/TrackTrajectory.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.commands; import edu.wpi.first.math.geometry.Rotation2d; diff --git a/src/main/java/frc/robot/commands/homingRoutine/HomeBase.java b/src/main/java/frc/robot/commands/homingRoutine/HomeBase.java index 8164e22..76e798c 100644 --- a/src/main/java/frc/robot/commands/homingRoutine/HomeBase.java +++ b/src/main/java/frc/robot/commands/homingRoutine/HomeBase.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.commands.homingRoutine; import edu.wpi.first.wpilibj2.command.CommandBase; diff --git a/src/main/java/frc/robot/commands/homingRoutine/HomeShoulder.java b/src/main/java/frc/robot/commands/homingRoutine/HomeShoulder.java index cb8e58f..9861c20 100644 --- a/src/main/java/frc/robot/commands/homingRoutine/HomeShoulder.java +++ b/src/main/java/frc/robot/commands/homingRoutine/HomeShoulder.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.commands.homingRoutine; import edu.wpi.first.wpilibj2.command.CommandBase; diff --git a/src/main/java/frc/robot/commands/moveToPose/MoveBaseToPose.java b/src/main/java/frc/robot/commands/moveToPose/MoveBaseToPose.java index cf6f95c..04a7ef6 100644 --- a/src/main/java/frc/robot/commands/moveToPose/MoveBaseToPose.java +++ b/src/main/java/frc/robot/commands/moveToPose/MoveBaseToPose.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.commands.moveToPose; import edu.wpi.first.wpilibj2.command.CommandBase; diff --git a/src/main/java/frc/robot/commands/moveToPose/MoveExtenderToPose.java b/src/main/java/frc/robot/commands/moveToPose/MoveExtenderToPose.java index 8716e5f..86ca65e 100644 --- a/src/main/java/frc/robot/commands/moveToPose/MoveExtenderToPose.java +++ b/src/main/java/frc/robot/commands/moveToPose/MoveExtenderToPose.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.commands.moveToPose; import edu.wpi.first.wpilibj2.command.CommandBase; diff --git a/src/main/java/frc/robot/commands/moveToPose/MoveShoulderToPose.java b/src/main/java/frc/robot/commands/moveToPose/MoveShoulderToPose.java index 4ebe98b..26f5c13 100644 --- a/src/main/java/frc/robot/commands/moveToPose/MoveShoulderToPose.java +++ b/src/main/java/frc/robot/commands/moveToPose/MoveShoulderToPose.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.commands.moveToPose; import edu.wpi.first.wpilibj2.command.CommandBase; diff --git a/src/main/java/frc/robot/commands/moveToPose/MoveToPose.java b/src/main/java/frc/robot/commands/moveToPose/MoveToPose.java index 69595df..dc43a22 100644 --- a/src/main/java/frc/robot/commands/moveToPose/MoveToPose.java +++ b/src/main/java/frc/robot/commands/moveToPose/MoveToPose.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.commands.moveToPose; import edu.wpi.first.wpilibj2.command.Command; diff --git a/src/main/java/frc/robot/positioning/ArmKinematics.java b/src/main/java/frc/robot/positioning/ArmKinematics.java index 4101c30..38acb54 100644 --- a/src/main/java/frc/robot/positioning/ArmKinematics.java +++ b/src/main/java/frc/robot/positioning/ArmKinematics.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.positioning; import edu.wpi.first.math.VecBuilder; diff --git a/src/main/java/frc/robot/positioning/Path.java b/src/main/java/frc/robot/positioning/Path.java index 029e3da..e08f0a8 100644 --- a/src/main/java/frc/robot/positioning/Path.java +++ b/src/main/java/frc/robot/positioning/Path.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.positioning; import java.util.ArrayList; diff --git a/src/main/java/frc/robot/positioning/Pose.java b/src/main/java/frc/robot/positioning/Pose.java index 03d25de..f9ffa7e 100644 --- a/src/main/java/frc/robot/positioning/Pose.java +++ b/src/main/java/frc/robot/positioning/Pose.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.positioning; import edu.wpi.first.math.geometry.Pose3d; diff --git a/src/main/java/frc/robot/positioning/Team937TrajectoryUtils.java b/src/main/java/frc/robot/positioning/Team937TrajectoryUtils.java index b896849..91a18a0 100644 --- a/src/main/java/frc/robot/positioning/Team937TrajectoryUtils.java +++ b/src/main/java/frc/robot/positioning/Team937TrajectoryUtils.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.positioning; import edu.wpi.first.math.geometry.Pose2d; diff --git a/src/main/java/frc/robot/subsystems/Camera.java b/src/main/java/frc/robot/subsystems/Camera.java index f0ef7ce..4365277 100644 --- a/src/main/java/frc/robot/subsystems/Camera.java +++ b/src/main/java/frc/robot/subsystems/Camera.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.subsystems; import edu.wpi.first.cameraserver.CameraServer; diff --git a/src/main/java/frc/robot/subsystems/Drive.java b/src/main/java/frc/robot/subsystems/Drive.java index b14912f..e50ee3a 100644 --- a/src/main/java/frc/robot/subsystems/Drive.java +++ b/src/main/java/frc/robot/subsystems/Drive.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.subsystems; import com.ctre.phoenix.motorcontrol.ControlMode; diff --git a/src/main/java/frc/robot/subsystems/I2CManager.java b/src/main/java/frc/robot/subsystems/I2CManager.java index b165c8c..d331d3b 100644 --- a/src/main/java/frc/robot/subsystems/I2CManager.java +++ b/src/main/java/frc/robot/subsystems/I2CManager.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.subsystems; import com.revrobotics.Rev2mDistanceSensor; diff --git a/src/main/java/frc/robot/subsystems/Limelight.java b/src/main/java/frc/robot/subsystems/Limelight.java index 22c0dfc..3ea89b2 100644 --- a/src/main/java/frc/robot/subsystems/Limelight.java +++ b/src/main/java/frc/robot/subsystems/Limelight.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.subsystems; import edu.wpi.first.math.geometry.Pose2d; diff --git a/src/main/java/frc/robot/subsystems/LimelightManager.java b/src/main/java/frc/robot/subsystems/LimelightManager.java index a802424..bf0d854 100644 --- a/src/main/java/frc/robot/subsystems/LimelightManager.java +++ b/src/main/java/frc/robot/subsystems/LimelightManager.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.subsystems; import edu.wpi.first.wpilibj2.command.SubsystemBase; diff --git a/src/main/java/frc/robot/subsystems/arm/ArmBase.java b/src/main/java/frc/robot/subsystems/arm/ArmBase.java index d0af5bc..c0823c9 100644 --- a/src/main/java/frc/robot/subsystems/arm/ArmBase.java +++ b/src/main/java/frc/robot/subsystems/arm/ArmBase.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.subsystems.arm; import com.ctre.phoenix.motorcontrol.ControlMode; diff --git a/src/main/java/frc/robot/subsystems/arm/ArmExtender.java b/src/main/java/frc/robot/subsystems/arm/ArmExtender.java index a37c9ac..44d145b 100644 --- a/src/main/java/frc/robot/subsystems/arm/ArmExtender.java +++ b/src/main/java/frc/robot/subsystems/arm/ArmExtender.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.subsystems.arm; import edu.wpi.first.math.filter.SlewRateLimiter; diff --git a/src/main/java/frc/robot/subsystems/arm/ArmIntake.java b/src/main/java/frc/robot/subsystems/arm/ArmIntake.java index 7c2ada0..dfa0020 100644 --- a/src/main/java/frc/robot/subsystems/arm/ArmIntake.java +++ b/src/main/java/frc/robot/subsystems/arm/ArmIntake.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.subsystems.arm; import edu.wpi.first.wpilibj.motorcontrol.Talon; diff --git a/src/main/java/frc/robot/subsystems/arm/ArmShoulder.java b/src/main/java/frc/robot/subsystems/arm/ArmShoulder.java index e6328e1..807087c 100644 --- a/src/main/java/frc/robot/subsystems/arm/ArmShoulder.java +++ b/src/main/java/frc/robot/subsystems/arm/ArmShoulder.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.subsystems.arm; import com.ctre.phoenix.motorcontrol.ControlMode; diff --git a/src/main/java/frc/robot/subsystems/arm/CompilationArm.java b/src/main/java/frc/robot/subsystems/arm/CompilationArm.java index 17d65c1..9f9efcc 100644 --- a/src/main/java/frc/robot/subsystems/arm/CompilationArm.java +++ b/src/main/java/frc/robot/subsystems/arm/CompilationArm.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.subsystems.arm; import edu.wpi.first.wpilibj2.command.SubsystemBase; diff --git a/src/main/java/frc/robot/subsystems/yourMom.java b/src/main/java/frc/robot/subsystems/yourMom.java index 269dfd5..bd70046 100644 --- a/src/main/java/frc/robot/subsystems/yourMom.java +++ b/src/main/java/frc/robot/subsystems/yourMom.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ package frc.robot.subsystems; import edu.wpi.first.wpilibj2.command.CommandBase; diff --git a/src/test/java/BaseTests.java b/src/test/java/BaseTests.java index 239f46d..813bf5a 100644 --- a/src/test/java/BaseTests.java +++ b/src/test/java/BaseTests.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ import org.junit.jupiter.api.Test; public class BaseTests { diff --git a/src/test/java/TestTesting.java b/src/test/java/TestTesting.java index fb4cb0a..984b575 100644 --- a/src/test/java/TestTesting.java +++ b/src/test/java/TestTesting.java @@ -1,6 +1,13 @@ // Copyright (c) FIRST and other WPILib contributors. // 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. + +/* + * Asmiov's Laws: + * The First Law: A robot may not injure a human being or, through inaction, allow a human being to come to harm. + * The Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. + * The Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. + */ import org.junit.jupiter.api.Test; public class TestTesting {