From 982db168335e63ab4227639024e61500641505d1 Mon Sep 17 00:00:00 2001 From: Antoine PerreaultE Date: Tue, 28 Jan 2025 19:22:43 -0500 Subject: [PATCH] grimpeMieux --- src/main/java/frc/robot/command/GrimpeurBas.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/frc/robot/command/GrimpeurBas.java b/src/main/java/frc/robot/command/GrimpeurBas.java index cf31f6a..9f4a210 100644 --- a/src/main/java/frc/robot/command/GrimpeurBas.java +++ b/src/main/java/frc/robot/command/GrimpeurBas.java @@ -24,9 +24,12 @@ public class GrimpeurBas extends Command { // Called every time the scheduler runs while the command is scheduled. @Override public void execute() { - if(grimpeur.encodeur()>=500){ + if(grimpeur.encodeur()>=500 && grimpeur.encodeur()<=510){ grimpeur.grimpe(0); } + else if(grimpeur.encodeur()>=510){ + grimpeur.grimpe(0.5); + } grimpeur.grimpe(-0.5); }