Merge branch 'main' of https://demerso.net/pls5618/2023/robot
This commit is contained in:
commit
0a3fa4f804
Binary file not shown.
@ -55,9 +55,10 @@ public RobotContainer() {
|
|||||||
configureBindings();
|
configureBindings();
|
||||||
|
|
||||||
basePilotable.setDefaultCommand(brakeOuvre);
|
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() {}
|
private void configureBindings() {}
|
||||||
|
|
||||||
public Command getAutonomousCommand() {
|
public Command getAutonomousCommand() {
|
||||||
|
@ -32,7 +32,7 @@ public class BasePilotable extends SubsystemBase {
|
|||||||
return gyroscope.getPitch();
|
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);
|
drive.arcadeDrive(xSpeed, zRotation);
|
||||||
}
|
}
|
||||||
public double distance(){
|
public double distance(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user