Skip to content

Commit

Permalink
Basic skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
MarissaKoglesby committed Apr 29, 2024
1 parent a695784 commit b82308f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ public static class Auto {

/** The amount of time that we want to run the fire note command in auto. */
public static final double FIRE_NOTE_FOR_TIME = 4.0;

/** Time in seconds that we delay our taxi in the delayed taxi auto. */
public static final double TAXI_DELAY_TIME = 10.0;
}

/** Constants for the Intake System */
Expand Down
26 changes: 26 additions & 0 deletions src/main/java/frc/robot/commands/auto/DelayedTaxiAuto.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// 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.

/*
* 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.auto;

import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
import edu.wpi.first.wpilibj2.command.WaitCommand;
import frc.robot.Constants;

/** Taxi auto that waits a bit before it taxis. */
public class DelayedTaxiAuto extends SequentialCommandGroup {
/** Creates a new DelayedTaxiAuto. */
public DelayedTaxiAuto() {
// Add your commands in the addCommands() call, e.g.
// addCommands(new FooCommand(), new BarCommand());
addCommands(new WaitCommand(Constants.Auto.TAXI_DELAY_TIME), new TaxiAuto());
}
}

0 comments on commit b82308f

Please sign in to comment.