当前位置: 首页>>代码示例>>Java>>正文


Java ProxyUtils类代码示例

本文整理汇总了Java中org.droidplanner.services.android.utils.ProxyUtils的典型用法代码示例。如果您正苦于以下问题:Java ProxyUtils类的具体用法?Java ProxyUtils怎么用?Java ProxyUtils使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ProxyUtils类属于org.droidplanner.services.android.utils包,在下文中一共展示了ProxyUtils类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getCameraProxy

import org.droidplanner.services.android.utils.ProxyUtils; //导入依赖的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: getMission

import org.droidplanner.services.android.utils.ProxyUtils; //导入依赖的package包/类
private Mission getMission() {
    final Drone drone = this.droneMgr.getDrone();
    org.droidplanner.core.mission.Mission droneMission = drone.getMission();
    List<org.droidplanner.core.mission.MissionItem> droneMissionItems = droneMission.getItems();

    Mission proxyMission = new Mission();
    proxyMission.setCurrentMissionItem((short) drone.getMissionStats().getCurrentWP());
    if (!droneMissionItems.isEmpty()) {
        for (org.droidplanner.core.mission.MissionItem item : droneMissionItems) {
            proxyMission.addMissionItem(ProxyUtils.getProxyMissionItem(item));
        }
    }

    return proxyMission;
}
 
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:16,代码来源:DroneApi.java

示例3: setMission

import org.droidplanner.services.android.utils.ProxyUtils; //导入依赖的package包/类
@Override
public void setMission(Mission mission, boolean pushToDrone) throws RemoteException {
    org.droidplanner.core.mission.Mission droneMission = this.droneMgr.getDrone().getMission();
    droneMission.clearMissionItems();

    List<MissionItem> itemsList = mission.getMissionItems();
    for (MissionItem item : itemsList) {
        droneMission.addMissionItem(ProxyUtils.getMissionItem(droneMission, item));
    }

    if (pushToDrone)
        droneMission.sendMissionToAPM();
}
 
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:14,代码来源:DroneApi.java

示例4: buildSurvey

import org.droidplanner.services.android.utils.ProxyUtils; //导入依赖的package包/类
private Survey buildSurvey(Survey survey) {
    org.droidplanner.core.mission.Mission droneMission = this.droneMgr.getDrone().getMission();
    org.droidplanner.core.mission.survey.Survey updatedSurvey = (org.droidplanner.core.mission.survey.Survey) ProxyUtils.getMissionItem
            (droneMission, survey);

    return (Survey) ProxyUtils.getProxyMissionItem(updatedSurvey);
}
 
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:8,代码来源:DroneApi.java

示例5: buildStructureScanner

import org.droidplanner.services.android.utils.ProxyUtils; //导入依赖的package包/类
private StructureScanner buildStructureScanner(StructureScanner item) {
    org.droidplanner.core.mission.Mission droneMission = this.droneMgr.getDrone().getMission();
    org.droidplanner.core.mission.waypoints.StructureScanner updatedScan = (org.droidplanner.core.mission.waypoints.StructureScanner) ProxyUtils
            .getMissionItem(droneMission, item);

    StructureScanner proxyScanner = (StructureScanner) ProxyUtils.getProxyMissionItem(updatedScan);
    return proxyScanner;
}
 
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:9,代码来源:DroneApi.java


注:本文中的org.droidplanner.services.android.utils.ProxyUtils类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。