Skip to content

Commit

Permalink
Applied spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
AraReighard committed Jan 23, 2024
1 parent 0d6e9cd commit a5442a3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public static class Controllers {
public static class Intake {
/** Motor id of the Intake motor. */
public static final int INTAKE_MOTOR_ID = 0;

/** Speed we want to run the Intake at. */
public static final double INTAKE_MOTOR_SPEED = 0.5;
}
Expand Down
9 changes: 8 additions & 1 deletion src/main/java/frc/robot/commands/RunIntake.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@
// 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.

/*
* Asimov'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.Command;
import frc.robot.subsystems.Intake;
import frc.robot.RobotContainer;
import frc.robot.subsystems.Intake;

public class RunIntake extends Command {

Expand Down
13 changes: 9 additions & 4 deletions src/main/java/frc/robot/subsystems/Intake.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,20 @@
// 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.

/*
* Asimov'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;
import edu.wpi.first.wpilibj.motorcontrol.Spark;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.Constants;

/**
* The intake of the robot.
*/
/** The intake of the robot. */
public class Intake extends SubsystemBase {

private Spark intake;
Expand Down

0 comments on commit a5442a3

Please sign in to comment.