當前位置: 首頁>>代碼示例>>Java>>正文


Java Camera類代碼示例

本文整理匯總了Java中org.droidplanner.core.drone.variables.Camera的典型用法代碼示例。如果您正苦於以下問題:Java Camera類的具體用法?Java Camera怎麽用?Java Camera使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Camera類屬於org.droidplanner.core.drone.variables包,在下文中一共展示了Camera類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getCameraProxy

import org.droidplanner.core.drone.variables.Camera; //導入依賴的package包/類
private CameraProxy getCameraProxy() {
    Drone drone = droneMgr.getDrone();
    Camera droneCamera = drone.getCamera();

    List<Footprint> footprints = droneCamera.getFootprints();
    final int printsCount = footprints.size();

    List<FootPrint> proxyPrints = new ArrayList<FootPrint>(footprints.size());
    for (Footprint footprint : footprints) {
        proxyPrints.add(getProxyCameraFootPrint(footprint));
    }

    GPS droneGps = drone.getGps();
    final FootPrint currentFieldOfView = droneGps.isPositionValid()
            ? getProxyCameraFootPrint(droneCamera.getCurrentFieldOfView())
            : new FootPrint();

    return new CameraProxy(ProxyUtils.getCameraDetail(droneCamera.getCamera()),
            currentFieldOfView, proxyPrints, getCameraDetails());
}
 
開發者ID:jiaminghan,項目名稱:droidplanner-master,代碼行數:21,代碼來源:DroneApi.java

示例2: DroneImpl

import org.droidplanner.core.drone.variables.Camera; //導入依賴的package包/類
public DroneImpl(MAVLinkStreams.MAVLinkOutputStream mavClient, DroneInterfaces.Clock clock,
		DroneInterfaces.Handler handler, Preferences pref) {
	this.MavClient = mavClient;
	this.preferences = pref;

       events = new DroneEvents(this, handler);
	state = new State(this, clock, handler);
	heartbeat = new HeartBeat(this, handler);
	parameters = new Parameters(this, handler);

       RC = new RC(this);
       GPS = new GPS(this);
       this.type = new Type(this);
       this.speed = new Speed(this);
       this.battery = new Battery(this);
       this.radio = new Radio(this);
       this.home = new Home(this);
       this.mission = new Mission(this);
       this.missionStats = new MissionStats(this);
       this.streamRates = new StreamRates(this);
       this.altitude = new Altitude(this);
       this.orientation = new Orientation(this);
       this.navigation = new Navigation(this);
       this.guidedPoint =  new GuidedPoint(this);
       this.calibrationSetup = new Calibration(this);
       this.waypointManager = new WaypointManager(this);
       this.mag = new Magnetometer(this);
       this.footprints = new Camera(this);

       loadVehicleProfile();
}
 
開發者ID:jiaminghan,項目名稱:droidplanner-master,代碼行數:32,代碼來源:DroneImpl.java

示例3: getCamera

import org.droidplanner.core.drone.variables.Camera; //導入依賴的package包/類
public Camera getCamera() {
	return footprints;
}
 
開發者ID:jiaminghan,項目名稱:droidplanner-master,代碼行數:4,代碼來源:DroneImpl.java

示例4: getCamera

import org.droidplanner.core.drone.variables.Camera; //導入依賴的package包/類
public Camera getCamera(); 
開發者ID:jiaminghan,項目名稱:droidplanner-master,代碼行數:2,代碼來源:Drone.java


注:本文中的org.droidplanner.core.drone.variables.Camera類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。