feat:ftc2024-autonome.java add dist_to_time

This commit is contained in:
GZod01 2024-02-04 14:46:27 +01:00
parent c33b2d5ca0
commit d236f152c0

View file

@ -21,6 +21,11 @@ public class ftc2024_autonome extends LinearOpMode {
private DcMotor lm;
private ElapsedTime runtime = new ElapsedTime();
public double time_for_dist(double speed, double dist){
return (double) (dist/speed);
}
@Override
public void runOpMode() {
lm = hardwareMap.get(DcMotor.class, "blm");