This commit is contained in:
Antoine PerreaultE 2023-02-15 18:35:35 -05:00
parent 74da425b74
commit f57a481554
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(){