This commit is contained in:
Antoine PerreaultE 2023-02-20 19:55:47 -05:00
parent f4061cb391
commit 392561c0e2
2 changed files with 6 additions and 5 deletions

View File

@ -69,7 +69,7 @@ public RobotContainer() {
manette1.a().toggleOnTrue(Commands.startEnd(pince::ouvrir, pince::fermer,pince));
manette1.x().toggleOnTrue(Commands.startEnd(basePilotable::BrakeFerme,basePilotable::BrakeOuvre,basePilotable));
manette1.y().whileTrue(gyro);
manette1.b().toggleOnTrue(Commands.startEnd(gratte::baiser, gratte::Lever,gratte));
manette1.b().toggleOnTrue(Commands.startEnd());
manette1.start().toggleOnTrue(Commands.startEnd(basePilotable::resetGyro, basePilotable::resetGyro, basePilotable));
}

View File

@ -4,6 +4,8 @@
package frc.robot.commands;
import com.ctre.phoenix.motorcontrol.LimitSwitchNormal;
import frc.robot.Constants;
import edu.wpi.first.wpilibj2.command.CommandBase;
import frc.robot.subsystems.Gratte;
@ -24,7 +26,7 @@ public class GratteMonte extends CommandBase {
@Override
public void execute() {
if(gratte.hautd()){
gratte.Lever(0);
gratte.Lever(0.5);
}
else{
gratte.Lever(0.5);
@ -43,8 +45,7 @@ public class GratteMonte extends CommandBase {
// Returns true when the command should end.
@Override
public boolean isFinished() {
public boolean isFinished(){
return false;
}
}
}