Merge branch 'main' of https://demerso.net/pls5618/2023/robot
This commit is contained in:
		| @@ -55,8 +55,9 @@ public RobotContainer() { | ||||
|     configureBindings(); | ||||
|  | ||||
|     basePilotable.setDefaultCommand(brakeOuvre); | ||||
|     new RunCommand(basePilotable.drive(-manette1.getLeftY(), manette1.getLeftX(), -manette1.getLeftTriggerAxis()+manette.getRightTriggerAxis()), basePilotable), null)); | ||||
|   } | ||||
|     basePilotable.drive(-manette1.getLeftY(), manette1.getLeftX(), -manette1.getLeftTriggerAxis()+manette1.getRightTriggerAxis(), basePilotable); | ||||
| } | ||||
|  | ||||
|  | ||||
|   private void configureBindings() {} | ||||
|  | ||||
|   | ||||
| @@ -32,7 +32,7 @@ public class BasePilotable extends SubsystemBase { | ||||
|     return gyroscope.getPitch(); | ||||
|   } | ||||
|  | ||||
|   public void drive(double xSpeed, double zRotation, double d){ | ||||
|   public void drive(double xSpeed, double zRotation, double d, BasePilotable basePilotable){ | ||||
|     drive.arcadeDrive(xSpeed, zRotation); | ||||
|   } | ||||
|   public double distance(){ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user