This commit is contained in:
Antoine PerreaultE 2023-02-15 18:56:04 -05:00
parent f57a481554
commit 67b762d877
3 changed files with 8 additions and 2 deletions

View File

@ -4,10 +4,12 @@
package frc.robot;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.XboxController;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.Commands;
import edu.wpi.first.wpilibj2.command.RunCommand;
import edu.wpi.first.wpilibj2.command.button.JoystickButton;
//subsystems
import frc.robot.subsystems.BasePilotable;
import frc.robot.subsystems.Gratte;
@ -59,7 +61,11 @@ public RobotContainer() {
}
private void configureBindings() {}
private void configureBindings() {
JoystickButton buttonA = new JoystickButton(manette1, XboxController.Button.kA.value);
buttonA.whenPressed()
}
public Command getAutonomousCommand() {
return Commands.print("No autonomous command configured");

View File

@ -32,7 +32,7 @@ public class BasePilotable extends SubsystemBase {
return gyroscope.getPitch();
}
public void drive(double xSpeed, double zRotation, double d, BasePilotable basePilotable){
public void drive(double xSpeed, double zRotation, double d){
drive.arcadeDrive(xSpeed, zRotation);
}
public double distance(){