This commit is contained in:
samuel desharnais 2023-02-15 18:54:39 -05:00
commit 0a3fa4f804
3 changed files with 4 additions and 3 deletions

View File

@ -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() {}

View File

@ -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(){