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


Java Drone.buildComplexMissionItem方法代码示例

本文整理汇总了Java中com.o3dr.android.client.Drone.buildComplexMissionItem方法的典型用法代码示例。如果您正苦于以下问题:Java Drone.buildComplexMissionItem方法的具体用法?Java Drone.buildComplexMissionItem怎么用?Java Drone.buildComplexMissionItem使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.o3dr.android.client.Drone的用法示例。


在下文中一共展示了Drone.buildComplexMissionItem方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onChanged

import com.o3dr.android.client.Drone; //导入方法依赖的package包/类
@Override
public void onChanged(CardWheelHorizontalView cardWheel, int oldValue, int newValue) {
	switch (cardWheel.getId()) {
	case R.id.anglePicker:
	case R.id.altitudePicker:
	case R.id.overlapPicker:
	case R.id.sidelapPicker:
           Drone drone = getDrone();
		try {
			for (Survey survey : getMissionItems()) {
                   SurveyDetail surveyDetail = survey.getSurveyDetail();
                   surveyDetail.setAltitude(mAltitudePicker.getCurrentValue());
                   surveyDetail.setAngle(mAnglePicker.getCurrentValue());
                   surveyDetail.setOverlap(mOverlapPicker.getCurrentValue());
                   surveyDetail.setSidelap(mSidelapPicker.getCurrentValue());

                   drone.buildComplexMissionItem(survey);
                   checkIfValid(survey);
			}
		} catch (Exception e) {
			Log.e(TAG, "Error while building the survey.", e);
		}

           getMissionProxy().notifyMissionUpdate();
		break;
	}
}
 
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:28,代码来源:MissionSurveyFragment.java

示例2: onCheckedChanged

import com.o3dr.android.client.Drone; //导入方法依赖的package包/类
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
       Drone drone = getDrone();
	for (StructureScanner item : getMissionItems()) {
           item.setCrossHatch(isChecked);
           drone.buildComplexMissionItem(item);
       }

	MissionProxy missionProxy = getMissionProxy();
	if (missionProxy != null)
		missionProxy.notifyMissionUpdate();
}
 
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:13,代码来源:MissionStructureScannerFragment.java

示例3: onSpinnerItemSelected

import com.o3dr.android.client.Drone; //导入方法依赖的package包/类
@Override
public void onSpinnerItemSelected(Spinner spinner, int position) {
	if (spinner.getId() == id.cameraFileSpinner) {
           Drone drone = getDrone();

		CameraDetail cameraInfo = cameraAdapter.getItem(position);
		for (StructureScanner scan : getMissionItems()) {
               SurveyDetail surveyDetail = scan.getSurveyDetail();
               surveyDetail.setCameraDetail(cameraInfo);
               drone.buildComplexMissionItem(scan);
		}

		getMissionProxy().notifyMissionUpdate();
	}
}
 
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:16,代码来源:MissionStructureScannerFragment.java


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