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


Java ConditionYaw类代码示例

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


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

示例1: processMavLinkMessages

import org.droidplanner.core.mission.commands.ConditionYaw; //导入依赖的package包/类
private List<MissionItem> processMavLinkMessages(List<msg_mission_item> msgs) {
	List<MissionItem> received = new ArrayList<MissionItem>();

	for (msg_mission_item msg : msgs) {
		switch (msg.command) {
		case MAV_CMD.MAV_CMD_DO_SET_SERVO:
			received.add(new SetServo(msg, this));
			break;
		case MAV_CMD.MAV_CMD_NAV_WAYPOINT:
			received.add(new Waypoint(msg, this));
			break;
		case MAV_CMD.MAV_CMD_NAV_SPLINE_WAYPOINT:
			received.add(new SplineWaypoint(msg, this));
			break;
		case MAV_CMD.MAV_CMD_NAV_LAND:
			received.add(new Land(msg, this));
			break;
		case MAV_CMD.MAV_CMD_NAV_TAKEOFF:
			received.add(new Takeoff(msg, this));
			break;
		case MAV_CMD.MAV_CMD_DO_CHANGE_SPEED:
			received.add(new ChangeSpeed(msg, this));
			break;
		case MAV_CMD.MAV_CMD_DO_SET_CAM_TRIGG_DIST:
			received.add(new CameraTrigger(msg,this));
			break;
		case EpmGripper.MAV_CMD_DO_GRIPPER:
			received.add(new EpmGripper(msg, this));
			break;
		case MAV_CMD.MAV_CMD_DO_SET_ROI:
			received.add(new RegionOfInterest(msg, this));
			break;
		case MAV_CMD.MAV_CMD_NAV_LOITER_TURNS:
			received.add(new Circle(msg, this));
			break;
		case MAV_CMD.MAV_CMD_NAV_RETURN_TO_LAUNCH:
			received.add(new ReturnToHome(msg, this));
			break;				
		case MAV_CMD.MAV_CMD_CONDITION_YAW:
			received.add(new ConditionYaw(msg, this));
			break;
		default:
			break;
		}
	}
	return received;
}
 
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:48,代码来源:Mission.java


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