Exploit databaseDownload repository ZIP
GH-c4e50c735cb90647eb468de49d88a58a
adarwa/blackbeard-powerplay
Sources for CVE-2019-11358
1,181 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files2
adarwa/blackbeard-powerplayRevision 5281e1835a59
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/TeleOpDrive/imu/IMU.java
Java · 1,144 bytespackage org.firstinspires.ftc.teamcode.TeleOpDrive.imu;
import com.qualcomm.hardware.bosch.BNO055IMU;
import com.qualcomm.robotcore.hardware.HardwareMap;
import org.firstinspires.ftc.robotcore.external.navigation.AngleUnit;
import org.firstinspires.ftc.robotcore.external.navigation.AxesOrder;
import org.firstinspires.ftc.robotcore.external.navigation.AxesReference;
public class IMU {
private BNO055IMU imu;
public IMU(HardwareMap hardwareMap){
imu = hardwareMap.get(BNO055IMU.class, "imu");
initialize();
}
public void initialize(){
BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();
parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;
parameters.calibrationDataFile = "BNO055IMUCalibration.json"; // see the calibration sample opmode
parameters.loggingEnabled = true;
parameters.loggingTag = "IMU";
imu.initialize(parameters);
}
public double getHeading(){
return AngleUnit.DEGREES.normalize(imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES).firstAngle);
}
}