This commit is contained in:
samuel desharnais
2023-02-20 20:00:21 -05:00
7 changed files with 33 additions and 9 deletions

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;
}
}
}