2023-10-03 19:22:33 -04:00
|
|
|
// 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;
|
|
|
|
|
2023-10-25 20:02:03 -04:00
|
|
|
import edu.wpi.first.wpilibj.XboxController;
|
2023-10-03 19:22:33 -04:00
|
|
|
import edu.wpi.first.wpilibj2.command.Command;
|
|
|
|
import edu.wpi.first.wpilibj2.command.Commands;
|
2023-10-25 20:02:03 -04:00
|
|
|
import edu.wpi.first.wpilibj2.command.RunCommand;
|
|
|
|
import edu.wpi.first.wpilibj2.command.button.CommandXboxController;
|
|
|
|
import frc.robot.subsystems.Drive;
|
2023-10-03 19:22:33 -04:00
|
|
|
|
|
|
|
public class RobotContainer {
|
2023-10-25 20:02:03 -04:00
|
|
|
CommandXboxController manette1 = new CommandXboxController(0);
|
|
|
|
CommandXboxController manette2 = new CommandXboxController(0);
|
|
|
|
Drive drive = new Drive();
|
2023-10-03 19:22:33 -04:00
|
|
|
public RobotContainer() {
|
|
|
|
configureBindings();
|
2023-10-25 20:02:03 -04:00
|
|
|
drive.setDefaultCommand(new RunCommand(()->{
|
|
|
|
drive.drive(manette1.getLeftX(), manette1.getLeftY(), manette1.getRightX());
|
|
|
|
},drive));
|
2023-10-03 19:22:33 -04:00
|
|
|
}
|
2023-10-25 19:01:18 -04:00
|
|
|
|
2023-10-03 19:22:33 -04:00
|
|
|
private void configureBindings() {}
|
|
|
|
|
|
|
|
public Command getAutonomousCommand() {
|
|
|
|
return Commands.print("No autonomous command configured");
|
|
|
|
}
|
|
|
|
}
|