Exploit databaseDownload repository ZIP
GH-dc3cf0db7c63d73b422d212dd241344f
ahs-robotics-club/12864-ultimategoal
Sources for CVE-2019-11358
1,181 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files19
ahs-robotics-club/12864-ultimategoalRevision bd764a11494e
- ↑..Parent directory
- AutomaticFeedforwardTuner.java
- BackAndForth.java
- DriveVelocityPIDTuner.java
- FieldCentricTest.java
- FollowerPIDTuner.java
- LocalizationTest.java
- ManualFeedforwardTuner.java
- MaxVelocityTuner.java
- SingleMotorPID.java
- SplineTest.java
- SplineTestRR.java
- StrafeTest.java
- StraightTest.java
- TrackWidthTuner.java
- TrackingWheelForwardOffsetTuner.java
- TrackingWheelLateralDistanceTuner.java
- TurnTest.java
- VisionTesting.java
- WheelLatDistanceTuner.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/BackAndForth.java
Java · 3,080 bytespackage org.firstinspires.ftc.teamcode.drive.opmode;
import com.acmerobotics.dashboard.config.Config;
import com.acmerobotics.roadrunner.geometry.Pose2d;
import com.acmerobotics.roadrunner.trajectory.Trajectory;
import com.arcrobotics.ftclib.command.CommandOpMode;
import com.arcrobotics.ftclib.command.RunCommand;
import com.arcrobotics.ftclib.command.SequentialCommandGroup;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import org.firstinspires.ftc.teamcode.drive.SampleMecanumDrive;
import org.firstinspires.ftc.teamcode.subsystems.MecanumDriveSubsystem;
import org.firstinspires.ftc.teamcode.commands.rr.TrajectoryFollowerCommand;
/**
* Op mode for preliminary tuning of the follower PID coefficients (located in the drive base
* classes). The robot drives back and forth in a straight line indefinitely. Utilization of the
* dashboard is recommended for this tuning routine. To access the dashboard, connect your computer
* to the RC's WiFi network. In your browser, navigate to https://192.168.49.1:8080/dash if you're
* using the RC phone or https://192.168.43.1:8080/dash if you are using the Control Hub. Once
* you've successfully connected, start the program, and your robot will begin moving forward and
* backward. You should observe the target position (green) and your pose estimate (blue) and adjust
* your follower PID coefficients such that you follow the target position as accurately as possible.
* If you are using SampleMecanumDrive, you should be tuning TRANSLATIONAL_PID and HEADING_PID.
* If you are using SampleTankDrive, you should be tuning AXIAL_PID, CROSS_TRACK_PID, and HEADING_PID.
* These coefficients can be tuned live in dashboard.
*
* This opmode is designed as a convenient, coarse tuning for the follower PID coefficients. It
* is recommended that you use the FollowerPIDTuner opmode for further fine tuning.
*
* NOTE: this has been refactored to use FTCLib's command-based
*/
@Config
@Autonomous(group = "drive")
public class BackAndForth extends CommandOpMode {
public static double DISTANCE = 50;
private MecanumDriveSubsystem drive;
private TrajectoryFollowerCommand forwardFollower, backwardFollower;
@Override
public void initialize() {
drive = new MecanumDriveSubsystem(new SampleMecanumDrive(hardwareMap), false);
Trajectory forwardTrajectory = drive.trajectoryBuilder(new Pose2d())
.forward(DISTANCE)
.build();
forwardFollower = new TrajectoryFollowerCommand(drive, forwardTrajectory);
backwardFollower = new TrajectoryFollowerCommand(drive,
drive.trajectoryBuilder(forwardTrajectory.end())
.back(DISTANCE)
.build()
);
SequentialCommandGroup backAndForthCommand = new SequentialCommandGroup(forwardFollower, backwardFollower);
schedule(new RunCommand(() -> {
if (backAndForthCommand.isFinished() || !backAndForthCommand.isScheduled()) {
backAndForthCommand.schedule();
}
}));
}
}