This commit is contained in:
2023-02-15 19:52:10 -05:00
parent b4d38706ee
commit 0fabe373fa
3 changed files with 2 additions and 7 deletions

View File

@ -5,6 +5,7 @@
package frc.robot.commands;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj2.command.CommandBase;
import frc.robot.subsystems.BasePilotable;
@ -26,7 +27,7 @@ public class Reculer extends CommandBase {
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
basePilotable.drive(0.2, 0);
basePilotable.drive(SmartDashboard.getNumber("vitesse auto", -0.3), 0);
}
// Called once the command ends or is interrupted.