zxcvbnm,
This commit is contained in:
		| @@ -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"); | ||||
|   | ||||
| @@ -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(){ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user