Exploit database

GH-2d496ec093a48d5761ee52950aca83a6

27470-sw/2025code

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 files20

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

TeamCode/src/main/java/org/firstinspires/ftc/teamcode/robot/CamMount.java

Java · 1,259 bytes
package org.firstinspires.ftc.teamcode.robot;

import com.qualcomm.robotcore.hardware.HardwareMap;
import com.qualcomm.robotcore.hardware.PwmControl;
import com.qualcomm.robotcore.hardware.Servo;
import com.qualcomm.robotcore.hardware.ServoImplEx;
import com.qualcomm.robotcore.util.RobotLog;
import com.qualcomm.robotcore.wifi.RobotControllerAccessPointAssistant;

public class CamMount
{
  public CamMount(HardwareMap map) { this.hwMap = map; }

  public boolean init(){

    boolean success;

    try{
      camServo = hwMap.get(Servo.class, "camservo");
      success = true;
      setCamPos(RobotConstants.CAM_STOW);
      if(camServo instanceof ServoImplEx)
      {
        ServoImplEx sie = ((ServoImplEx) camServo);
        PwmControl.PwmRange rng = sie.getPwmRange();
        RobotLog.dd(TAG, "Camservo pwm range: %.2f to %.2f",
                         rng.usPulseLower, rng.usPulseUpper);
      }
    }catch (Exception e)
    {
      RobotLog.ee(TAG, "ERROR: Cam Servo missing");
      success = false;
    }
    return success;
  }

  public void setCamPos(double pos)
  {
    if(camServo == null) return;
    camServo.setPosition(pos);
  }

  private static final String TAG = "SJH_CAM";
  public Servo camServo;
  protected HardwareMap hwMap;
}