Exploit databaseDownload repository ZIP
GH-89786c7d19f1094f9762e90b692942e5
25wangj/ftcintothedeep16460
Sources for CVE-2019-11358
1,181 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files22
25wangj/ftcintothedeep16460Revision cd48e52a53ca
- ↑..Parent directory
- AdaptiveQuadrature.java
- CachingMotor.java
- CubicSpline.java
- CubicSplineInterpolator.java
- Drivetrain.java
- Encoder.java
- LinePath.java
- Localizer.java
- MecanumDrivetrain.java
- Path.java
- PathState.java
- PathTrajectory.java
- Pose.java
- SplinePath.java
- ThreeWheelLocalizer.java
- TrajCommandBuilder.java
- Trajectory.java
- TrajectoryState.java
- TurnTrajectory.java
- Twist.java
- Vec.java
- WaitTrajectory.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/movement/CachingMotor.java
Java · 607 bytespackage org.firstinspires.ftc.teamcode.movement;
import com.qualcomm.robotcore.hardware.DcMotorEx;
import java.util.function.DoubleSupplier;
public class CachingMotor {
public static final int steps = 20;
public static final double refVoltage = 12;
public final DcMotorEx motor;
private DoubleSupplier voltage;
public CachingMotor(DcMotorEx motor, DoubleSupplier voltage) {
this.motor = motor;
this.voltage = voltage;
}
public void setPower(double p) {
motor.setPower((double)Math.round(p * steps * refVoltage / voltage.getAsDouble()) / steps);
}
}