-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAutos.java
More file actions
20 lines (16 loc) · 730 Bytes
/
Copy pathAutos.java
File metadata and controls
20 lines (16 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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.
package frc.robot.commands;
import frc.robot.subsystems.ExampleSubsystem;
import edu.wpi.first.wpilibj2.command.CommandBase;
import edu.wpi.first.wpilibj2.command.Commands;
public final class Autos {
/** Example static factory for an autonomous command. */
public static CommandBase exampleAuto(ExampleSubsystem subsystem) {
return Commands.sequence(subsystem.exampleMethodCommand(), new ExampleCommand(subsystem));
}
private Autos() {
throw new UnsupportedOperationException("This is a utility class!");
}
}