本文整理汇总了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;
}
}
示例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();
}
示例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();
}
}