cdf
This commit is contained in:
		| @@ -7,6 +7,7 @@ package frc.robot; | ||||
| 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; | ||||
| //subsystems | ||||
| import frc.robot.subsystems.BasePilotable; | ||||
| import frc.robot.subsystems.Gratte; | ||||
| @@ -52,6 +53,9 @@ PivoteBrasHaut pivoteBrasHaut = new PivoteBrasHaut(brasTelescopique, pivot); | ||||
|  | ||||
| public RobotContainer() { | ||||
|     configureBindings(); | ||||
|  | ||||
|     basePilotable.setDefaultCommand(brakeOuvre); | ||||
|     new RunCommand(basePilotable.drive(-manette1.getLeftY(), manette1.getLeftX(), -manette1.getLeftTriggerAxis()+manette.getRightTriggerAxis()), basePilotable), null)); | ||||
|   } | ||||
|  | ||||
|   private void configureBindings() {} | ||||
|   | ||||
| @@ -32,7 +32,7 @@ public class BasePilotable extends SubsystemBase { | ||||
|     return gyroscope.getPitch(); | ||||
|   } | ||||
|  | ||||
|   public void drive(double xSpeed, double zRotation, int i){ | ||||
|   public void drive(double xSpeed, double zRotation, double d){ | ||||
|     drive.arcadeDrive(xSpeed, zRotation); | ||||
|   } | ||||
|   public double distance(){ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user