Exploit database

GH-0e0721bcac72f9b7e4ba78d83b7e3749

6165-mset-cuttlefish/powerplay

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 files9

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

TeamCode/src/main/java/org/firstinspires/ftc/teamcode/modules/turret/IntertialCompensation.java

Java · 699 bytes
package org.firstinspires.ftc.teamcode.modules.turret;

public class IntertialCompensation {
    public static double lengthMultiplier(double extensionPos){
        //uses rightservo position of the horizontal linkage
        double length = extensionPos / 0.22 * 29.6371 + 7.6;
        return length / 30.37;
    }
    public static double PIDMultiplier(double extensionPos){
        //p = Iw
        //I = 4/3ML^2
        //p = 4/3ML^2 * w
        //w = p/(4/3ML^2)
        //treat p/(4/3M) as a constant
        //w ~= 1/L^2
        double multiplier = 1/(lengthMultiplier(extensionPos)*lengthMultiplier(extensionPos));
        if(multiplier > 1)multiplier =1;
        return multiplier;
    }
}