当前位置: 首页>>代码示例>>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;未经允许,请勿转载。