Exploit databaseDownload repository ZIP
GH-926d0561d8f13935aa3cec2ad4c33e99
6165-mset-cuttlefish/ftcrobotcontroller
Sources for CVE-2019-11358
1,181 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files13
6165-mset-cuttlefish/ftcrobotcontrollerRevision 52691b9ed152
- ↑..Parent directory
- AutomaticFeedforwardTuner.java
- BackAndForth.java
- DriveVelocityPIDTuner.java
- FollowerPIDTuner.java
- LocalizationTest.java
- ManualFeedforwardTuner.java
- MaxAngularVeloTuner.java
- MaxVelocityTuner.java
- SplineTest.java
- StrafeTest.java
- StraightTest.java
- TrackWidthTuner.java
- TurnTest.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/drive/opmode/LocalizationTest.java
Java · 2,127 bytespackage org.firstinspires.ftc.teamcode.drive.opmode;
import com.acmerobotics.roadrunner.geometry.Pose2d;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.DcMotor;
import org.firstinspires.ftc.teamcode.Robot;
import org.firstinspires.ftc.teamcode.drive.SampleMecanumDrive;
import org.firstinspires.ftc.teamcode.drive.StaticConfig;
import org.firstinspires.ftc.teamcode.roadrunnerext.drive.ImprovedDrive;
/**
* This is a simple teleop routine for testing localization. Drive the robot around like a normal
* teleop routine and make sure the robot's estimated pose matches the robot's actual pose (slight
* errors are not out of the ordinary, especially with sudden drive motions). The goal of this
* exercise is to ascertain whether the localizer has been configured properly (note: the pure
* encoder localizer heading may be significantly off if the track width has not been tuned).
*/
@TeleOp(group = "drive")
@Disabled
public class LocalizationTest extends LinearOpMode {
@Override
public void runOpMode() throws InterruptedException {
ImprovedDrive drive = StaticConfig.getDrive(hardwareMap);
drive.setPoseEstimate(new Pose2d());
drive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);
telemetry.addData("Ready", "ready");
telemetry.update();
waitForStart();
while (!isStopRequested()) {
drive.setWeightedDrivePower(
new Pose2d(
-gamepad1.left_stick_y,
0,
-gamepad1.right_stick_x
)
);
drive.update();
if (gamepad1.right_bumper) {
drive.setPoseEstimate(new Pose2d());
}
telemetry.addData("Velo", drive.getPoseVelocity().getX());
telemetry.addData("Heading Velo", Math.toDegrees(drive.getPoseVelocity().getHeading()));
telemetry.update();
}
}
}