fhghj
This commit is contained in:
parent
74da425b74
commit
f57a481554
Binary file not shown.
@ -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(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user