Skip to content

Commit

Permalink
license header now includes Asimov's Laws
Browse files Browse the repository at this point in the history
--Gabe
  • Loading branch information
willitcode committed Nov 1, 2023
1 parent f843639 commit 7abbef9
Show file tree
Hide file tree
Showing 48 changed files with 331 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/ArbitraryValues.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/Main.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/TCA9548A.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/commands/Autos.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/commands/Balance.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/commands/DriveArcade.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/commands/DriveForwards.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/commands/DriveReverse.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/commands/DriveTank.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/commands/ExtendArm.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/commands/InCubeOutCone.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/commands/ManualArm.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/commands/MoveBaseDegrees.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/commands/MoveShoulderDegrees.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/commands/OutCubeInCone.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/commands/ResetDrivePose.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/commands/RetractArm.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/commands/StartLeavingCommunity.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/commands/StopLeavingCommunity.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/commands/TestDrivePID.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/commands/TrackTrajectory.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/commands/homingRoutine/HomeBase.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Loading

0 comments on commit 7abbef9

Please sign in to comment.