Exploit database

GH-17c1e7899cfff2194dc77a67b4010017

201-991-broncobotics/ftc-201-intothedeep

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2019-11358

1,181 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files12

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Settings.java

Suggested starting fileJava · 8,162 bytes
package org.firstinspires.ftc.teamcode;

import static org.firstinspires.ftc.teamcode.subsystems.subsubsystems.functions.tiles;

import com.acmerobotics.dashboard.config.Config;

import org.firstinspires.ftc.teamcode.subsystems.subsubsystems.PIDControllerSettingsReference;

@Config
public class Settings {

    public static double maxDrivetrainMotorPower = 0.85; // percent
    public static double maxDrivetrainTurnPower = 0.8;
    public static double controllerDeadZone = 0.01;
    public static double driveFeedBackStaticPower = 0.12; // power required in order to start moving the robot
    //public static double turnFeedBackStaticPower = 0.0;
    public static boolean tuneDriveFeedBackStaticPower = false;
    //public static boolean tuneTurnFeedBackStaticPower = false;
    public static double SwerveMinimumPower = 0.04;
    public static int[] AcceptableIds = new int[] {1, 2, 3}; // 1 = red, 2 = yellow, 3 = blue
    public static double HuskyLensTargetX = 160;
    public static double HuskyLensTargetY = 70; // huskylens screen is 320 pixels width (x) and 240 pixels height (y)
    public static int SwerveModuleDriveSharpness = 1; // 1 is normal, a value higher than 1 would make the module have much less power when not at the correct angle
    public static double DriveExtensionDriveReduction = 0.2;
    public static double DriveExtensionTurnBoost = 0;
    public static double DriverLocalizationCorrectionHoldTime = 1000; // ms
    public static double DriveMotorReadDifference = 0.01; // makes it so unnecessary changes to motor power don't impact performance as much
    public static double ArmMotorReadDifference = 0.005;
    public static double LocalizationChamberResetY = tiles(-1.3), LocalizationRightResetX = tiles(2.75) + 4, LocalizationBottomResetY = tiles(-3) + 4.0, LocalizationLeftResetX = tiles(-2.75);

    // -1.3, 2.75, -3 + 4.0, -2.75
    @Config
    public static class AAutoAndPresetsConfig {

        public static double WristAutonChamberAngle = 190;
        public static double ChamberPresetPivotAngle = 76;
        public static double ChamberPresetExtensionLength = 200;
        public static double AutoChamberPresetPivotAngle = 74;
        public static double AutoChamberPresetExtensionLength = 200;
        public static double AUTOCHAMBEREARLYPivotAngle = 78.5;
        public static double AUTOCHAMBEREARLYExtensionLength = 200;
        public static double HumanPlayerPresetPivotAngle = 74;
        public static double HumanPlayerPresetExtensionLength = 15;
        public static double FiveSpecimenAutoPivotAngle = 73;
        public static double FiveSpecimenAutoExtensionLength = 200;
        public static double FiveSpecimenEARLYAutoPivotAngle = 78.5;
        public static double FiveSpecimenEARLYAutoExtensionLength = 210;
    }

    @Config
    public static class ArmSystemSettings {

        public static double minimumPivotSpeedPercent = 0.4; // for when extension is fully extended
        public static double pivotMaxAngle = 115; // degrees
        public static double maxManualClawSpeedVertical = 700;
        public static double maxManualClawSpeedHorizontal = 600; // mm per second
        public static double maxManualExtensionSpeed = 750;
        public static double maxManualPivotSpeed = 80;
        public static double maxCameraTargetingSpeed = 250;
        public static double maxCameraTargetingSpeedSquared = 0;
        public static double maxCameraTargetingTurnSpeed = 0.5; // mm, percent
        public static double pivotRetractedGravityPower = 0.19;
        public static double pivotExtendedGravityPower = 0.5;
        public static double extensionGravityPower = 0.16;
        public static double pivotMotorBacklash = 12; // degrees
        public static double LinearSlideBend = -5; // degrees that the linear slide bends when horizontal and at max extension
        public static double WristServoMSPerDegree = 0; // time is takes for the servo to move 1 degree
        public static double WristServoRatio = 1.38; //1.7 axon // og 1.35
        public static double WristServoOffset = 0;
        public static double WristFloorAngle = 205;
        public static boolean WristServoReversed = true;
        public static double OperatorTurnOverridePower = 0; // permanently 0
        public static double ClawClosingSlowPower = -0.6;
        public static double ClawClosingReallySlowPower = -0.15;
        public static double ClawOpeningPower = 1; // degrees (0.5)
        public static double ClawClosingPower = -0.5; // degrees (0.85)
        public static double ClawClampingPower = -0.6; // degrees (0.85)
        public static double PivotBacklashMaxAngle = 87;
        public static double PIVOTOffset = 0.0; // DOES NOT WORK
        public static double OffsetResetPivotZero = 10;
        public static double OperatorDriveTurnPower = 0.35;
        public static double ExtensionNormalMaxAcceleration = 1600;
        public static double ExtensionNormalMaxDeceleration = -1200;
        public static double ExtensionSubMaxAcceleration = 0;
        public static double ExtensionSubMaxDeceleration = 0;
        public static double EmergencyExtensionPowerReleaseTimeout = 1000 * 120; // ms
        public static double EmergencyExtensionPowerReleaseSpeed = 0.1; // power that is decreased every second after timeout
        public static double PivotAccelerationDampeningPower = 0; // tends to cause extreme oscillations even at very small numbers
        public static double FieldCentricArmVelocityCompensation = 0.25;
        public static boolean ObeyHorizontalLimit = true;
        public static double HangExtensionPowerOffset = -0.8;
        public static double HangPivotPowerOffset = -0.8;
        public static boolean startHanging = false;


        public static PIDControllerSettingsReference ExtensionReference = new PIDControllerSettingsReference(
                0.01,
                0,
                0.0005,
                0,
                0,
                Constants.extensionMaxLength,
                0,
                1,
                0,
                0,
                696,
                15,
                ExtensionNormalMaxAcceleration,
                ExtensionNormalMaxDeceleration,
                true,
                true);

        public static PIDControllerSettingsReference PivotReference = new PIDControllerSettingsReference(
                0.06,
                0,
                0.0005,
                0,
                0,
                ArmSystemSettings.pivotMaxAngle,
                0,
                1,
                0,
                0,
                180,
                3,
                0,
                -200,
                true,
                true);
    }

    public static double slowMovingHeadingPIDMinDifference = 3;

    public static PIDControllerSettingsReference HeadingReference = new PIDControllerSettingsReference(
            0.003,
            0,
            0.0004,
            0.00012,
            0,
            0,
            0.01,
            0.8,
            0,
            0.3,
            0,
            0,
            0,
            0,
            false,
            false);


    @Config
    public static class DriverAutoTargetCoords{
        public static double BasketX = -3, BasketY = -3; // BasketX = -2.45, BasketY = -2.4;

        public static double HumanPickupX = 1.75, HumanPickupY = -2.8; // HumanPickupX = 2.1, HumanPickupY = -2.6;
        public static double HumanDropOffX = 2.1, HumanDropOffY = -2.2, HumanDropOffHeading = 315; // HumanDropOffX = 2.1, HumanDropOffY = -2.2, HumanDropOffHeading = 315;

        public static double SubmersibleX = -1.1, SubmersibleY = 0; // SubmersibleX = -1.05, SubmersibleY = 0;

    }

    public static PIDControllerSettingsReference SwerveReference = new PIDControllerSettingsReference(
            0.007,
            0.0,
            0.0002,
            0,
            0,
            0,
            0,
            1,
            0,
            1,
            0,
            0,
            0,
            0,
            false,
            false);

    public static double SwerveAlignmentKI = 0.025;

}