feat:ftc2024-autonome.java add dist_to_time
This commit is contained in:
parent
c33b2d5ca0
commit
d236f152c0
1 changed files with 5 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue